mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 13:14:50 +00:00
HHH-17683 never look for session getters in mapped superclasses or embeddables
This commit is contained in:
parent
88370906a4
commit
b1319ad549
@ -302,7 +302,9 @@ else if ( containsAnnotation( method, Constants.HQL, Constants.SQL, Constants.FI
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user