Package org.hibernate.tuple.entity

Examples of org.hibernate.tuple.entity.VersionProperty


        getConstructor( property.getPersistentClass() )
    );

    boolean lazy = lazyAvailable && property.isLazy();

    return new VersionProperty(
        persister,
        sessionFactory,
        attributeNumber,
            property.getName(),
            property.getValue().getType(),
View Full Code Here


        getConstructor( property.getPersistentClass() )
    );

    boolean lazy = lazyAvailable && property.isLazy();

    return new VersionProperty(
        persister,
        sessionFactory,
        attributeNumber,
            property.getName(),
            property.getValue().getType(),
View Full Code Here

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result, session );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
        );
      }
    }
  }
View Full Code Here

        getConstructor( property.getPersistentClass() )
    );

    boolean lazy = lazyAvailable && property.isLazy();

    return new VersionProperty(
        persister,
        sessionFactory,
        attributeNumber,
            property.getName(),
            property.getValue().getType(),
View Full Code Here

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result, session );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
        );
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.tuple.entity.VersionProperty

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.