lundi 2 mars 2015

JPA - Retrieve all Entity Classes

I need to have a List of clasess that are Persistence Entities, I need have Entity Information, using Reflection API of JPA


I have the EntityManager, But I do not know if that is the way.


I want to do a generic logging for my Entities using a EntityListener. That works well, but I do not have the way to register the listener to all my entities.






Aucun commentaire:

Enregistrer un commentaire