users@glassfish.java.net

Re: Nullable columns in JPA2.0

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Fri, 12 Mar 2010 10:00:35 +0100

Just a guess, but
@Column(nullable = true) allows to really set null, while @Basic(optional =
true) would simply not include it in the insert statement, thus falling back
to the default value of the column.



-- 
[url=http://www.dominikdorn.com]Dominik Dorn[/url]
Exchange your  [url=http://www.studyguru.eu] studying materials  [/url] on
[url=http://www.studyguru.eu] Study Guru [/url]!