Is it possible to implement a custom IdentifierGenerator for a table that uses an identify column for pk and have that generator work with a custom UserType?
Here's my current setup for a table:
<id name="id" column="message_log_id" type="edu.ucsd.som.hibernate.NumericString">
<generator class="native"/>
</id>
NumericString type is designed to simply convert a number into a string (e.g. 123456 becomes "123456")
Currently, if using "native" generator, I get "net.sf.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short." So, it looks like I need to write a custom generator. Any pointers on how to do it? I've read the docs and saw the example at
http://hibernate.bluemars.net/50.html, but I'm still lost.
Thanks
Dmitry