|optional vs nullable attributes [message #649109]
||Mon, 17 January 2011 12:35
| Daniel Le Berre
Registered: July 2009
I have a question regarding the meaning of the optional attribute that can be found on @Basic or relationship annotations and the nullable attribute that can be found in @Column and @JoinColumn annotations.
Isn't @Basic(optional=false) a hint for the JPA provider to make the underlying column not nullable?
I had the idea that the optional attribute on the object side was equivalent to the nullable attribute on the relational side.
Powered by FUDForum
. Page generated in 0.05271 seconds