In looking into the (java.lang.reflect) AnnotatedElement implementation class, Method.java, the Sun Window JDK version uses AnnotationParser to retrieve annotations and the results are correct.
In contrast, the IBM JDK 5 beta on AIX uses AnnotationHelper class which in turn uses other native classes to retrieve values. The Boolean values always retrieved as false, even it is not specified.
In my scenario, the Hibernation Class, AnnotationBinder.java, uses AnnotatedElement.getDeclaredAnnotations() and failed to get the correct value if it is of type boolean. It always return false. Because column Updatable and Insertable flags are false, the column tags are never inserted properly into the SQL in BasicEntityPerster.java (Hibernation Class), that causes a blank row inserted into the database.
Looks like a bug on JDK 5 beta.
|