]
Max Rydahl Andersen commented on HBX-1072:
------------------------------------------
I only see that happening if you are not using java.math.BigDecimal in the
typename...please provide testcase for what is actually failing for you.
hbm2java generates bad code for BigDecimal in equals() (Remains after
HBX-426)
------------------------------------------------------------------------------
Key: HBX-1072
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1072
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2.1
Environment: Hibernate 3, Postgres
Reporter: Arnaud Renouf
Original Estimate: 30 minutes
Remaining Estimate: 30 minutes
Even with the correction in HBX-426, the bug is still there. In BasicPOJOClass.java in
method useCompareTo(String javaTypeName), the javaTypeName is not the complete type name
(with packages). So the test "java.math.BigDecimal".equals(javaTypeName) always
returns false and the BigDecimal.compareTo method is never used in the generated equals
method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: