Hibernate version: 3.1
Name and version of the database you are using: mySql 5
Hi,
I'm using a custom identifier generator e.g.
<generator class="com.blah.foo.MyIdentifierGenerator">
</generator>
I use this custom generator for more than one entity i.e. the above tag is used in multiple .hbm.xml files that each map a unique Java class to a [unique] table.
Question:
If I use the above tag in N .hbml.xml files, then how many instances of MyIdentifierGenerator are created?
In my testing I see N instances are created, but I'd like to verify from someone who may know for sure. I hope to have a separate instance of the custom generator for each .hbm.xml file using the custom generator.
I suppose I could look in the source code, but I'm hoping to save that as a last resort.
Thanks
|