We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b021d13 commit 121c85eCopy full SHA for 121c85e
tooling/metamodel-generator/src/main/java/org/hibernate/processor/validation/MockSessionFactory.java
@@ -822,12 +822,7 @@ public EntityDomainType<?> entity(String entityName) {
822
823
@Override
824
public @Nullable EntityDomainType<?> findEntityType(@Nullable String entityName) {
825
- if ( isEntityDefined(entityName) ) {
826
- return new MockEntityDomainType<>(entityName);
827
- }
828
- else {
829
- return null;
830
+ return entity( entityName );
831
}
832
833
0 commit comments