fix a bug in generation of @Find method for @NaturalId fields
StatelessSession does not have a byNaturalId() method
This commit is contained in:
parent
938f592982
commit
dec1eae54a
|
@ -1921,6 +1921,7 @@ public class AnnotationMetaEntity extends AnnotationMeta {
|
|||
);
|
||||
break;
|
||||
case NATURAL_ID:
|
||||
if ( !usingStatelessSession( sessionType[0] ) ) {// no byNaturalId() lookup API for SS
|
||||
putMember( methodKey,
|
||||
new NaturalIdFinderMethod(
|
||||
this, method,
|
||||
|
@ -1940,6 +1941,8 @@ public class AnnotationMetaEntity extends AnnotationMeta {
|
|||
)
|
||||
);
|
||||
break;
|
||||
}
|
||||
// else intentionally fall through
|
||||
case BASIC:
|
||||
case MULTIVALUED:
|
||||
final List<Boolean> paramPatterns = parameterPatterns( method );
|
||||
|
|
Loading…
Reference in New Issue