Bag associations not translated correctly with hbm2hbmxml
---------------------------------------------------------
Key: HBX-683
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-683
Project: Hibernate Tools
Type: Bug
Versions: 3.1.beta5
Environment: hibernatetools 3.1 beta 5 with Hibernate 3.1 CR1
Reporter: Ali Ibrahim
Attachments: bag.hbm.ftl
A bag association in a configuration is not translated correctly when generating hbm XML files via hbm2hbmxml. The current code translates the bag association without taking into account the type of element in the collection, whether it is one-to-many or many-to-many, etc. Instead it puts a placeholder of:
<element type="string" column="dummy"/>
A simple fix would be to replicate most of the functionality in template for set associations. I am not sure if there is extra logic that is specific for bag associations. I have attached a simple template augmentation which allowed for one-to-many relationships to be translated correctly (for my simple case at least). This fix was enough for my purposes of using linguine maps to create a diagram from the model.
--
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
|