Regular |
|
Joined: Fri Oct 01, 2004 2:19 am Posts: 111 Location: Melbourne, Australia
|
Hi,
I can see two options here which would not require you to create multiple
mapping files, but they're not necessarily pretty:
1. You can write your own generator class, as per the Hibernate reference
section 6.1.4 and configure it using spring at runtime to do the appropriate thing.
2. Use XML include directives to include an XML fragment for the id generator
and use your build system to provide the correct include file based on
your development environment.
HTH.
_________________ Cheers,
Bonny
please don't forget to rate :)
|
|