MathJax

SyntaxHighlighter

Highlight

Custom CSS

Sunday, April 30, 2006

Hibernate: Wrapper classes (revisited)

As an additional note to the previous entry about Hibernate and using object wrapper classes, I found this another good example in the Hibernate Quickly book:

Suppose your persistent class has a boolean property, and the property can be null in the database. You will get a PropertyAccessException when you work with a row that has a null value for that column. If your class uses java.lang.Boolean instead, you won't have this problem.
Post a Comment