KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to determine the native table name of an entity? If a Table annotation is present it's easy: entityClass.getAnnotation(Table.class).name() But what about if no Table annotation is present? Hibernate provides this information via the Configuration class: configuration.getClassMapping(entityClass.getSimpleName()).getTable().getName() Is there something similar in JPA?
Tags (comma-separated)
Save Edits
Cancel