[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-825) hbm2java: Circular dependency between POJO source generation and Comparator class compilation

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Mon Aug 20 07:31:13 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen closed HBX-825.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.2.beta11

fixed - see HBX-826 (feedback wanted ;)

> 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
>          Issue Type: Bug
>          Components: hbm2java
>    Affects Versions: 3.1beta3
>         Environment: Hibernate 3.1.3 and +.  
> Using MySQL 5.0
>            Reporter: Julien Fourment
>             Fix For: 3.2.beta11
>
>         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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list