Transformer le modèle .HBM en pojos annotés
-
02-07-2019 - |
Question
Nous avons notre modèle de domaine déclaré dans les anciens fichiers hbm rouillés, nous souhaitons passer aux POJO annotés avec les annotations javax.persistence. *.
Quelqu'un en at-il déjà fait l'expérience?
Existe-t-il des outils que nous pourrions utiliser?
La solution
Vous pouvez utiliser la tâche ant hbm2java de hibernate-tools.jar. C'est un outil appelé Hibernate Tool. hbm2java générera un POJOS annoté JPA à partir de fichiers hbm.
Voir http://www.hibernate.org/ hib_docs / tools / reference / fr / html / ant.html
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow