[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1057) "join table" in hbm.xml

Peter Merker (JIRA) noreply at atlassian.com
Sun Apr 13 02:16:33 EDT 2008


"join table" in hbm.xml
-----------------------

                 Key: HBX-1057
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1057
             Project: Hibernate Tools
          Issue Type: Patch
         Environment: Hibernate version and database platform don't matter. Hibernate Tools is from VCS.
            Reporter: Peter Merker
         Attachments: join.hbm.ftl, persistentclass.hbm.ftl

These templates allow you to get the "join" elements into the generated hbm.xml files. As this information has to be added to the metamodel objects beforehand (PersistentClass.addJoin), it only works if you convert from annotation based pojo's to hbm.xml (that's what Max said) or if you build your own Hibernate Configuration and add the joins there. Please beware that I didn't test this with annotation to hbm.xml conversion, I just used it for my self build Hibernate Configuration.

persistentclass.hbm.ftl now iterates over the joins and includes join.hbm.ftl where the needed code snippet resides.

-- 
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