> 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