Package org.hibernate.engine.spi

Examples of org.hibernate.engine.spi.EntityUniqueKey


        // polymorphism not really handled completely correctly,
        // perhaps...well, actually its ok, assuming that the
        // entity name used in the lookup is the same as the
        // the one used here, which it will be

        EntityUniqueKey euk = new EntityUniqueKey(
            entityReference.getEntityPersister().getEntityName(),
            ukName,
            type.semiResolve( values[index], context.getSession(), entityInstance ),
            type,
            concreteEntityPersister.getEntityMode(),
View Full Code Here


        // polymorphism not really handled completely correctly,
        // perhaps...well, actually its ok, assuming that the
        // entity name used in the lookup is the same as the
        // the one used here, which it will be

        EntityUniqueKey euk = new EntityUniqueKey(
            entityReference.getEntityPersister().getEntityName(),
            ukName,
            type.semiResolve( values[index], context.getSession(), entityInstance ),
            type,
            concreteEntityPersister.getEntityMode(),
View Full Code Here

    //    2) The incoming key is most likely the collection key which we need to resolve to the owner key
    //      find the corresponding owner instance
    //      a) try by EntityUniqueKey
    if ( collectionType.getLHSPropertyName() != null ) {
      final Object owner = getEntity(
          new EntityUniqueKey(
              ownerPersister.getEntityName(),
              collectionType.getLHSPropertyName(),
              key,
              collectionPersister.getKeyType(),
              ownerPersister.getEntityMode(),
View Full Code Here

        // polymorphism not really handled completely correctly,
        // perhaps...well, actually its ok, assuming that the
        // entity name used in the lookup is the same as the
        // the one used here, which it will be

        EntityUniqueKey euk = new EntityUniqueKey(
            entityReference.getEntityPersister().getEntityName(),
            ukName,
            type.semiResolve( values[index], context.getSession(), entityInstance ),
            type,
            concreteEntityPersister.getEntityMode(),
View Full Code Here

        // polymorphism not really handled completely correctly,
        // perhaps...well, actually its ok, assuming that the
        // entity name used in the lookup is the same as the
        // the one used here, which it will be

        EntityUniqueKey euk = new EntityUniqueKey(
            rootPersister.getEntityName(), //polymorphism comment above
            ukName,
            type.semiResolve( values[index], session, object ),
            type,
            persister.getEntityMode(),
View Full Code Here

        // polymorphism not really handled completely correctly,
        // perhaps...well, actually its ok, assuming that the
        // entity name used in the lookup is the same as the
        // the one used here, which it will be

        EntityUniqueKey euk = new EntityUniqueKey(
            rootPersister.getEntityName(), //polymorphism comment above
            ukName,
            type.semiResolve( values[index], session, object ),
            type,
            persister.getEntityMode(),
View Full Code Here

    final SessionFactoryImplementor factory = session.getFactory();
    UniqueKeyLoadable persister = ( UniqueKeyLoadable ) factory.getEntityPersister( entityName );

    //TODO: implement caching?! proxies?!

    EntityUniqueKey euk = new EntityUniqueKey(
        entityName,
        uniqueKeyPropertyName,
        key,
        getIdentifierOrUniqueKeyType( factory ),
        persister.getEntityMode(),
View Full Code Here

    //    2) The incoming key is most likely the collection key which we need to resolve to the owner key
    //      find the corresponding owner instance
    //      a) try by EntityUniqueKey
    if ( collectionType.getLHSPropertyName() != null ) {
      Object owner = getEntity(
          new EntityUniqueKey(
              ownerPersister.getEntityName(),
              collectionType.getLHSPropertyName(),
              key,
              collectionPersister.getKeyType(),
              ownerPersister.getEntityMode(),
View Full Code Here

    final SessionFactoryImplementor factory = session.getFactory();
    UniqueKeyLoadable persister = ( UniqueKeyLoadable ) factory.getEntityPersister( entityName );

    //TODO: implement caching?! proxies?!

    EntityUniqueKey euk = new EntityUniqueKey(
        entityName,
        uniqueKeyPropertyName,
        key,
        getIdentifierOrUniqueKeyType( factory ),
        persister.getEntityMode(),
View Full Code Here

    final SessionFactoryImplementor factory = session.getFactory();
    UniqueKeyLoadable persister = ( UniqueKeyLoadable ) factory.getEntityPersister( entityName );

    //TODO: implement caching?! proxies?!

    EntityUniqueKey euk = new EntityUniqueKey(
        entityName,
        uniqueKeyPropertyName,
        key,
        getIdentifierOrUniqueKeyType( factory ),
        persister.getEntityMode(),
View Full Code Here

TOP

Related Classes of org.hibernate.engine.spi.EntityUniqueKey

Copyright © 2018 www.massapicom. 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.