| The idea is good, but it would not work because the EntityBinder assigns the entity name like this:
private void bindEjb3Annotation(Entity ejb3Ann) {
if ( ejb3Ann == null ) throw new AssertionFailure( "@Entity should always be not null" );
if ( BinderHelper.isEmptyAnnotationValue( ejb3Ann.name() ) ) {
name = StringHelper.unqualify( annotatedClass.getName() );
}
else {
name = ejb3Ann.name();
}
}
So, the entity name will still be ExampleTest$Person, meaning that all JPQL will fail unless we provide the entity name like this ExampleTest$Person. Therefore, I'm going to close this issue since it's unlikely that we modify the EntityBinder just to accommodate this use case for rendering the User Guide. |