Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1081) Generation
of meta attributes for composite-id

Anupam M (JIRA)

2008-08-14

Replies: Find Java Web Hosting

Author LoginPost Reply
Generation of meta attributes for composite-id
----------------------------------------------

          Key: HBX-1081
          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1081
        Project: Hibernate Tools
      Issue Type: Improvement
      Components: reverse-engineer
  Affects Versions: 3.2.beta11
     Environment: All, not related to platform.
       Reporter: Anders Reinhardt Hansen
       Priority: Minor


The ReverseEngineeringStrategy has a method; "public Map tableToMetaAttributes(TableIdentifier tableIdentifier)"
This method returns a Map of meta tags which will be put inside the class node of the hbm files that are generated.
It would be a nice addition if we could have a method like this which placed meta tags inside the composite id node.
the method could be called "public Map tableToMetaAttributesForCompositeId(TableIdentifier tableIdentifier)"

An example of the problem is shown in the below example;
<class name="XXX1" table="XXX1">
    <meta attribute="generated-class">XXX1Base</meta>       <!-- this can be generated by tableToMetaAttributes() -->
    <composite-id name="XXX2" class="XXX2">
          <meta attribute="generated-class">XXX2Base</meta> <!-- this cannot be generated -->
          <key-property name="propertyXXX" type="int">
               <column name="ColoumnXXX" />
          </key-property>
          <key-property name="YYY" type="int">
               <column name="ColoumnYYY" />
          </key-property>
    </composite-id>
    ...
</class>


The issue was discussed on the forum in topic http://forum.hibernate.org/viewtopic.php?t=989476

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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.