This content has been marked as final.
Show 2 replies
-
1. Re: @Basic(optional=true) vs @Column(nullable=true)
martinganserer Sep 14, 2006 9:41 AM (in response to sbublava)Hi,
yes and no!
With @Basic(optional=true) the persistence provider checks if a field is nullable or not. For example if false is selected you will get an error by the persitence provider if you forget to set a field. The @Column(nullable=true) is an information that the persistence provider uses when he creates physical database objects. It's up to you to select if the persistence provider and/or the database should check this.
Hope that helps you! -
2. Re: @Basic(optional=true) vs @Column(nullable=true)
sbublava Sep 15, 2006 4:58 AM (in response to sbublava)Thanks, that helps a lot!