stefan_f wrote:
You can implement your own generator, just implement IdentifierGenerator and in the Mapping file specify like this:
<id name="id" type="string" column="string_id">
<generator class="org.hibernate.YourCustomGenerator">
</generator>
</id>
You can have a look in the hibernate documentation (5.1.4 id).
Hi Dear Stefan,
my concern to generate id like this ABC1, ABC2,ABC3....
in hiberrnate doc 5.1.4 only generate numeric number i want to generate alphnumeric number ,if u could provide me complete solution , i would be greatful to u.eagerly waiting to your reply.this is essentially need in my project and i have to implement so please give the complete way,so that i would be able to do implement id like ABC1,ABC2..... .
Thanks & Regards
sandeep