-->
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.  [ 3 posts ] 
Author Message
 Post subject: hbm2java - class-code is written to id-class, too
PostPosted: Tue Nov 02, 2004 11:15 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
Hibernate version: 2.1.6
Hibernate extensions: 2.1.2

mapping-example
Code:
<class
    name="ClassA"
    table="tableA"
>
  <composite-id name="aid" class="ClassAID">
    <key-property .../>
    <key-property .../>
  </composite-id>

  <property ..../>
  <property ..../>

  <meta attribute="class-code">
    // will be inserted into both - ClassA and ClassAID :(
  </meta>
</class>


hi,

i'm using the meta-attribute "class-code" and was a little bit surprised that the code is inserted into the class itself and the id-class in case of a "composite-id".
Is there a possibility that the code will only be inserted to one of these classes?
Or better, that i can configure in which class?
Or much better to have an "class-code" attribute for the id and the class?

thx!
curio


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 02, 2004 12:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
<meta inherit="false" .../>

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 3:23 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
*soorry*

sure ... yes ... if i'd scrolled a little bit down, i would have found it by myself ...

thanks and sorry :)

gtx
curio


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

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.