From: Max R. A. (JIRA) <no...@at...> - 2006-06-05 21:58:22
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-683?page=all ] Max Rydahl Andersen closed HBX-683: ----------------------------------- Fix Version: 3.2beta6 Resolution: Fixed thanks. i've applied something similar (basically just what <set> already contained) should probably try and create some reusable blocks for the assocations handling. > 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 > Fix For: 3.2beta6 > Attachments: bag.hbm.ftl > > Original Estimate: 1 day > Remaining: 1 day > > 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 |