Brian Latimer wrote:

I get a NPE when representsNull is called on an anonymous field with a value of 0.


I can tell at least why this is happening: anonymous fields have no representation in the java classes, and thus no associated java field type (AnonymousPersistentField.getType() always returns null). So if you're using numeric values in the anonymous field, the representsNull method tries to check whether the type of the anonymous field is primitive which obviously fails.

I'm no expert on anonymous fields, but the solution could be to provide a reverse lookup "jdbc type -> java type" for anonymous fields which provides a sensible java type (in your case probably Double or BigDecimal).

Tom


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to