The [i]optional[/i] attribute is not necessarily processed by the JPA provider (the spec is vague here: [i]"This is a hint and is disregarded for primitive types; it may be used in schema generation."[/i]). So I'm not sure why the NetBeans changed the way the generate entities...
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=294936