-->
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: DDL2HBM: Mapping ID to auto create SEQUENCE
PostPosted: Fri Apr 13, 2007 10:09 pm 
Newbie

Joined: Thu Mar 15, 2007 1:22 am
Posts: 11
I can create the hbm's using the existing database, however, during the process it wants to create the sequence using the assigned generator.

I want it to do the following instead:
<id name="id" type="java.lang.Integer" column="id">
<meta attribute="scope-set">protected</meta>
<generator class="sequence">
<param name="sequence">reference.tome_id_sequence</param>
</generator>
</id>


By default it is doing:
<id name="id" type="int">
<column name="id" />

<generator class="assigned" />
</id>


Not sure what to put in the reveng.xml file to make it override the generator tag in ALL hbm's and use that generator class.

If its that I have to use templates, can someone point me to a link that gives a good example of how to use the templating system

Thanks

Thomas


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 15, 2007 4:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
suggestion: post tools related questions in the tool forum ;)

_________________
Max
Don't forget to rate


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.