users@glassfish.java.net

Re: Nullable columns in JPA2.0

From: <glassfish_at_javadesktop.org>
Date: Fri, 12 Mar 2010 03:27:55 PST

Thanks Dominic.
I hope to be correct but what I have concluded by now is;
@Column(nullable = false) talks to underlying database to set the filed property to not-nullable and,
@Basic(optional = false) is just a held at persistence provider level to refuse null values.
After all, I am not sure about that.
[Message sent by forum member 'youness_teimoury' (youness126_at_gmail.com)]

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