Hi Scott,
I don't think that orm.xml will work. GenericGenerator is a Hibernate extension with no equivalent in JPA annotations or orm.xml.
You should be able to add a .hbm.xml file adding something like this to the mapping file for your class:
Code:
<id name="id" type="long" column="id">
<generator class="com.foo.MyIDGenerator">
<!-- potential parameters -->
<param name="foo">bar</param>
</generator>
</id>
I haven't really tried this and even if it works I wouldn't recommend this approach since it is spreading configuration information all over the place. You want to use annotation, maybe orm.xml and hbm.xml mapping files. For a developer it will become very hard to understand the configuration as a whole.
Do you have a specific reason why you want to extract parts of the configuration data?
--Hardy