users@glassfish.java.net

Re: SQLSyntaxException

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Aug 2008 15:16:30 PDT

> Thank you, marina, that has solved it. I have taken
> the @Basic out, and changed the @JoinColumn to
> include "nullable = false", which I guess does the
> same thing.

You can specify optional=false on ManyToOne as following
    @ManyToOne(optional = false)
    private Products productId;
[Message sent by forum member 'dcao' (dcao)]

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