What’s the difference between the name argument in @Entity and @Table when using JPA?
@Table is optional. @Entity is needed for annotating a POJO class as an entity, but the name attribute is not mandatory. If you have a class @Entity class MyEntity {} A table with name “MyEntity” will be created and the Entity name will be MyEntity. Your JPQL query would be: select * from MyEntity In … Read more