Thanks, I saw that. However, I don't know where that XML snippet needs to go.
The code I'm working with specifies the generator strategy in a base class used for all their persistence classes, named Persistence.java. In that class there is the following Hibernate comment:
Code:
/**
* @hibernate.id generator-class="native"
*/
If I change this to my Hi/Lo Generator class, then it will be used by the application regardless of the database chosen when the application is deployed.
Therefore, I think I need to continue to specify "native", but somehow tell Hibernate to use my Hi/Lo Generator class when it decided that a hilo strategy is to be used.
I see, in IdentifierGeneratorFactory.java, that when the "hilo" strategy is to be used, it will use TableHiLoGenerator.class. There doesn't appear to be any way to change the class assigned to this table for the "hilo" strategy.
Thanks for your help,