users@glassfish.java.net

Re: WHERE CLAUSE NOT WORKING

From: <glassfish_at_javadesktop.org>
Date: Thu, 01 Nov 2007 11:39:32 PST

Hi,

I have tried a normal query, a named query and lastly a native query. My Section class looks like this:

public class Section implements Serializable {
    @Id
    @Column(name = "id", nullable = false)
    private Short id;
    @Column(name = "page_id", nullable = false)
    private short pageId;
    @Column(name = "align")
    private String align;
..........
My native query works fine without the where clause. I am lost as to what the problem may be.

Regards Nigel
[Message sent by forum member 'evenden' (evenden)]

http://forums.java.net/jive/thread.jspa?messageID=243354