-->
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: nHibernate Database Agnostic !!
PostPosted: Fri Oct 07, 2005 7:00 am 
Newbie

Joined: Fri Oct 07, 2005 6:52 am
Posts: 1
Hi All,
Is nHibername Database Agnostic ????
If someone says yes then i think it is not.
The reason behind this is the mapping file.
In the mapping there are generators section and for every database the generators will be different. Isnt it ?
Is there anyway in which we can make it database agnostic ???
Suggestions welcome ...

Regards,
Zuzar L.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 7:33 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
If you set the generator to 'native' it will use the default from the database dialect. You can add a sequence in the mapping file for databases that require those. It is just ignored for databases that use identity fields/autonumbers.

_________________
Cuyahoga


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.