| The issue is that, in JPA, the default entity name is the unqualified class name:
/**
* (Optional) The entity name. Defaults to the unqualified
* name of the entity class. This name is used to refer to the
* entity in queries. The name must not be a reserved literal
* in the Java Persistence query language.
*/
String name() default "";
But we should throw an error when trying to declare two entities with the same name. Vlad Mihalcea could you see if we can improve that? |