users@glassfish.java.net

Nullable columns in JPA2.0

From: <glassfish_at_javadesktop.org>
Date: Fri, 12 Mar 2010 00:57:11 PST

In JPA 2.0 annotations, there I feel a misperception about nullable columns.
There are two annotations to set a property to be nullable or not.
@Column(nullable = true) & @Basic(optional = true)
What is the difference of these two in setting a filed nullable/not-nullable?
There exists situations that I see both annotations are held on a property/field with a value set to false.
Regards
Youness
[Message sent by forum member 'youness_teimoury' (youness126_at_gmail.com)]

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