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: Help with Identity (SQL SERVER) and Sequence(Oracle)
PostPosted: Thu Aug 10, 2006 4:19 am 
Newbie

Joined: Tue Jul 25, 2006 2:50 am
Posts: 11
Hibernate version:
1.0.2
I'm doing an aplication that may run with a oracle database and sql server. I have a problem because I don“t want to change the mapping whenever I use one of the 2 databases. Exists any posibility??
... or a neutral mapping ??



Mapping documents:
this is for oracle....
<class name="ENTITY, ASSEMBLY'
table='TABLE'>
<id name='Id' column='Id' type='Int32'>
<generator class='sequence' >
<param name='sequence'>nameofthesequence_seq</param>
</generator>

</id>
..........
</classA>


this is for sqlserver

this is for oracle....
<class name="ENTITY, ASSEMBLY'
table='TABLE'>
<id name='Id' column='Id' type='Int32'>
<generator class='identity' >
</generator>

</id>
..........
</classA>

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 10, 2006 8:25 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
<generator class='native' >

Symon.


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.