[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-825?page=co...
]
Max Rydahl Andersen commented on HBX-825:
-----------------------------------------
should definitly be work-aroundable with <meta
attribute="property-type">thetypeyouwant</meta>
Remember to usa a recent version of hibernate tools.
A possible future "solution" is that getJavaTypeName detects that exception and
mutates the comparater value to something guaranteed to work just when it needs to get the
type.
hbm2java: Circular dependency between POJO source generation and
Comparator class compilation
---------------------------------------------------------------------------------------------
Key: HBX-825
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-825
Project: Hibernate Tools
Type: Bug
Components: hbm2java
Versions: 3.1beta3
Environment: Hibernate 3.1.3 and +.
Using MySQL 5.0
Reporter: Julien Fourment
Attachments: example_and_traces.zip
Hi,
My java objects are generated from the xml files using hbm2java. One of my collection is
sorted using a Comparator class.
hbm2java fails saying the comparator cannot be instantiated. But as the comparator makes
reference to my java object, it cannot be compiled before the generation happened. We have
a circular dependency here. (see example enclosed).
Is there any way to fix this ?
Many thanks !
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira