how may I change the default IdentifierGenerator in Hibernate.
I know i can specify an IdentifierGenerator for a Table with Annotations/hibernate.cfg.xml, but i dont like to specify it for every single Table.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the thing you need is to configure the identifier generation at sessionfactory level.
This feature is not supported in Hibernate.sessionFactory Configurations, mapping declarations
You have to specify it for for every table.