File tree Expand file tree Collapse file tree 3 files changed +2
-2
lines changed
hibernate-core/src/main/java/org/hibernate Expand file tree Collapse file tree 3 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,6 @@ public <T extends SessionFactoryBuilder> T unwrap(Class<T> type) {
465465
466466 @ Override
467467 public SessionFactory build () {
468- metadata .validate ();
469468 final StandardServiceRegistry serviceRegistry = metadata .getMetadataBuildingOptions ().getServiceRegistry ();
470469 BytecodeProvider bytecodeProvider = serviceRegistry .getService ( BytecodeProvider .class );
471470 addSessionFactoryObservers ( new SessionFactoryObserverForBytecodeEnhancer ( bytecodeProvider ) );
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public EventEngine(
6666 for ( Iterator <Property > propertyIterator = persistentClass .getDeclaredPropertyIterator (); propertyIterator .hasNext (); ) {
6767 final Property property = propertyIterator .next ();
6868
69- if ( property .getType (). isComponentType () ) {
69+ if ( property .isComposite () ) {
7070 this .callbackBuilder .buildCallbacksForEmbeddable (
7171 property ,
7272 persistentClass .getMappedClass (),
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ public void sessionFactoryClosed(SessionFactory factory) {
299299 );
300300 identifierGenerators .put ( model .getEntityName (), generator );
301301 } );
302+ metadata .validate ();
302303
303304 LOG .debug ( "Instantiated session factory" );
304305
You can’t perform that action at this time.
0 commit comments