-->
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: Oracle and the generator-class
PostPosted: Tue Jan 09, 2007 5:30 pm 
Newbie

Joined: Wed Nov 29, 2006 2:28 pm
Posts: 12
Hibernate version:3.2

We are using an Oracle DB and several of our tables use a sequence to populate the ID column of the table. We are using HibernateTools to reverse engineer our DB to create class files.

I read the reference document and discovered I can map an Oracle sequence to a table and column in the reveng.xml file. Is there another way to accomplish this without having to list each table in the reveng.xml file? The reason I ask is that it seems to me that Middlegen was able to identify that a column used a sequence by just examing the DB.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 5:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
report it as enhancement in jira - and even better provide the code needed to do it ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 9:05 am 
Newbie

Joined: Wed Nov 29, 2006 2:28 pm
Posts: 12
So does that mean there is no analogous functionality to Middlegen's standardGeneratorScheme property where you can indicate a generator scheme to Hibernate?

Is it possible to due something like this via an Ant Task?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 10:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we don't have a specific flag for it, but you can implement it by implementing a reveng strategy that returns "native" in

_________________
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.  [ 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.