jeudi 9 juillet 2015

Hibernate create and update: custom index pattern

At the moment when creating the db using

<prop key="hibernate.hbm2ddl.auto">update</prop>

Hibernate generates the indexes in the form of FK_9hd5ati8fm6wnfscra2u6erek

Is there a way to set a custom pattern in order to make hibernate create keys in a way like this role_right_id_right_idx role_right_id_right_fk according to the entities, fields name ?

Aucun commentaire:

Enregistrer un commentaire