-->
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: using "generated-class", hbm2java doesn't gen. com
PostPosted: Thu Oct 14, 2004 2:12 pm 
Newbie

Joined: Fri Oct 03, 2003 8:44 am
Posts: 11
I'm having trouble with the hbm2java tool generating a composite-id class.
I've got a class mapped in my hbm, foo.Bar...and I want to have the class that hbm2java generates from my hbm named foo.BaseBar so I can extend it. No problem, I'll just use the following:

Code:
<meta attribute="generated-class">foo.BaseBar</meta>


This typically works fine for me, but the class below has a composite-id in it and the composite id doesn't get generated when I have the "generated-class" attribute in my mapping file.

Can someone tell me how to get the composite-id generated?

Is this a bug or a "feature"? :)

Mapping documents:
Code:
<hibernate-mapping>
<meta attribute="generated-class">foo.BaseBar</meta>
<class
    name="foo.Bar"
    table="bar"
>
  <composite-id name="comp_id" class="foo.BarPK">
    <key-property name="id1" column="id1" type="java.lang.String"  />
    <key-property name="id2" column="id2" type="java.lang.String"  />
  </composite-id>
</class>


Thx,
Jon


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.