Is it possible to determine the native table name of an entity?
If Table annotation is present it's easy:
entityClass.getAnnotation(Table.class).name()
But is it possible to get the table name, if no Table annotation is present?
Hibernate provides the information via Configuration https://www.hibernate.org/hib_docs/v3/api/org/hibernate/cfg/Configuration.html#getClassMapping%28java.lang.String%29 :
configuration.getClassMapping(entityClass.getSimpleName()).getTable().getName()
Is there any similar option available in JPA? I think not, or?
Thanks a lot