HHH-17683 never look for session getters in mapped superclasses or embeddables
This commit is contained in:
parent
6ece032b02
commit
c829d9e5bf
|
@ -302,7 +302,9 @@ public class AnnotationMetaEntity extends AnnotationMeta {
|
|||
}
|
||||
|
||||
private void findSessionGetter(TypeElement type) {
|
||||
if ( !containsAnnotation( type, Constants.ENTITY ) ) {
|
||||
if ( !containsAnnotation( type, Constants.ENTITY )
|
||||
&& !containsAnnotation( type, Constants.MAPPED_SUPERCLASS )
|
||||
&& !containsAnnotation( type, Constants.EMBEDDABLE ) ) {
|
||||
for ( ExecutableElement method : methodsIn( type.getEnclosedElements() ) ) {
|
||||
if ( isSessionGetter( method ) ) {
|
||||
dao = true;
|
||||
|
|
Loading…
Reference in New Issue