-->
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: Determine Id generation strategy from DB dialect?
PostPosted: Wed Mar 30, 2005 11:33 am 
Newbie

Joined: Mon Oct 18, 2004 10:04 pm
Posts: 7
I need to support different DB products, some of which support identity columns, while others don't. I would like to configure the id columns to use identity generatior if the DB supports it, otherwise use sequence. Is there any other way better than doing build-time token replacement on the mapping files?

On top of that, if I were to migrate to annotation-based mapping with Hibernate 3, is there any way to achieve the same thing?

Thanks.
--mr


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
does "native" not work for you ?

regarding porting then we have the framework in hibernate tools to handle this, but it is still in progress.

Volunteers wanted! ,)

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 30, 2005 2:42 pm 
Newbie

Joined: Mon Oct 18, 2004 10:04 pm
Posts: 7
Yes, it does. And evidently it was a RTFM question. 8-)

_________________
--Jing Xue


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.