-->
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.  [ 4 posts ] 
Author Message
 Post subject: one generator entry for all tables in reveng.xml
PostPosted: Thu Dec 04, 2008 6:49 am 
Newbie

Joined: Wed Dec 03, 2008 9:36 am
Posts: 3
Is it possible to have one single point to define the sequence generation part for all Tables/PKs?

I tried this in reveng.xml:

<table schema="public" name=".*">
<primary-key>
<generator class="sequence">
<param name="sequence">MY_SEQ</param>
</generator>
</primary-key>
</table>

@SequenceGenerator is missing in the generated Class. Regex for name-Parameter seems not to work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 05, 2008 3:28 am 
Newbie

Joined: Wed Dec 03, 2008 9:36 am
Posts: 3
Is freemarker the solution?
Sorry if this question is stupid. Hibernate is new for me.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 06, 2008 5:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if you want complete freedom use the programmatic ReverseEngineeringStrategy approach

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2008 4:07 am 
Newbie

Joined: Wed Dec 03, 2008 9:36 am
Posts: 3
thank you max

Now I figured out how to handle the pojo/annotation-generation. The use of hbmtemplate with customizing the FTL-Files instead of hbm2java is the solution.

the world seems to be small, cheers from Aarau


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