-->
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.  [ 2 posts ] 
Author Message
 Post subject: hbm2java generate-class and compsite-id
PostPosted: Tue Nov 02, 2004 1:04 pm 
Newbie

Joined: Tue Nov 02, 2004 12:48 pm
Posts: 7
Location: Bamberg / Germany
Hibernate version: 2.1.6

Mapping documents: needed

Name and version of the database you are using:SAPDB 7.3

I use hbm2java to generate java-files from hbm.xml-files.

I want to use the tag:
<meta attribute="generated-class">de.path.path2.base.Classname</meta>


and middlegen has also generated:
<composite-id name="comp_id" class="de.path.path2.ko.ClassnamePK">

Now hbm2java generates only one file:
the de.path.path2.base.Classname, in which there I found
the definition for the primary keys.

I don't want do generate also an abstract class of the
ClassnamePK-file.

How can I do this? I don't find something in the doku.

Thanks for help.


Top
 Profile  
 
 Post subject: Re: hbm2java generate-class and compsite-id
PostPosted: Wed Nov 03, 2004 12:16 pm 
Newbie

Joined: Tue Nov 02, 2004 12:48 pm
Posts: 7
Location: Bamberg / Germany
gfischer wrote:
Hibernate version: 2.1.6

Mapping documents: needed

Name and version of the database you are using:SAPDB 7.3

I use hbm2java to generate java-files from hbm.xml-files.



I found the solution in the file:
http://forum.hibernate.org/viewtopic.php?t=929584


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.