Package org.hibernate.persister.entity

Examples of org.hibernate.persister.entity.EntityPersister.createProxy()


      return loaded;
    }
    if ( !eager && persister.hasProxy() ) {
      // if the metadata allowed proxy creation and caller did not request forceful eager loading,
      // generate a proxy
      return persister.createProxy( id, this );
    }
    // otherwise immediately materialize it
    return get( entityName, id );
  }
View Full Code Here


      return loaded;
    }
    if ( !eager && persister.hasProxy() ) {
      // if the metadata allowed proxy creation and caller did not request forceful eager loading,
      // generate a proxy
      return persister.createProxy( id, this );
    }
    // otherwise immediately materialize it
    return get( entityName, id );
  }
View Full Code Here

   * Creates proxy of referenced *-to-one entity.
   */
  public static Object createProxy(AuditReaderImplementor versionsReader, Class<?> entityClass, String entityName,
                   Object entityId, Number revision, AuditConfiguration verCfg) {
    EntityPersister persister = versionsReader.getSessionImplementor().getFactory().getEntityPersister( entityName );
    return persister.createProxy(
        (Serializable) entityId,
        new ToOneDelegateSessionImplementor( versionsReader, entityClass, entityId, revision, verCfg )
    );
  }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.