Hi,
I have a small problem (that smell like a bug somewhere) involving
@Transient booleans.
I want to persist a class using AccessType.PROPERTY, and Hibernate. This
class has a boolean I don't wish to store.
The problem is that the standard getter for a boolean, (for instance
"flag") is named "isFlag()".
Hibernate does follow this convention, and if I place a method named
"isFlag()", it will try to persist "flag".
On the other hand, the JSR220-ORM plugin (or is it the JRE 5 compiler ?)
insist that I put the "@Transient" annotation on a method named
"getFlag()", even if flag is indeed a boolean.
I am not allowed to put a @Transient annotation on a method called
"isFlag()".