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
|