How to retrieve mapping table name for an entity in JPA at runtime?
This is the method I am using with EclipseLink (no mapping file): /** * Returns the table name for a given entity type in the {@link EntityManager}. * @param em * @param entityClass * @return */ public static <T> String getTableName(EntityManager em, Class<T> entityClass) { /* * Check if the specified class is present in … Read more