-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hbm2hbmxml : foreign key with multiple columns
PostPosted: Wed Jun 16, 2010 11:09 am 
Newbie

Joined: Wed Jun 16, 2010 10:46 am
Posts: 1
Hello,

I use hbm2hbmxml with hibernate.reveng.xml configuration file to generate my hbm.xml.
To generate join elements , i use foreign-key attribute.

But this configuration doesn't work with multi columns : no join element is generated in hbm.xml file.

Code:
   <table name="table_name" catalog="catalog_name" schema="schema_name">
      <foreign-key
         constraint-name="FK_NAME"
         foreign-catalog="fk_catalog_name"
         foreign-schema="fk_schema_name"
         foreign-table="fk_table_name">
            <column-ref local-column="id_name1" foreign-column="fk_id_name1" />
            <column-ref local-column="id_name2" foreign-column="fk_id_name2" />
      </foreign-key>
   </table>


How to generate join elements in hbm.xml with foreign-key with multi-columns ?

Thanks
Nicolas


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.