Package org.hibernate.tuple

Examples of org.hibernate.tuple.VersionProperty


      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
View Full Code Here


      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
View Full Code Here

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
View Full Code Here

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
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

      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

      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

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
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

      Serializable result = entityMetamodel.getIdentifierProperty()
          .getUnsavedValue()
          .getDefaultValue( currentId );
      setIdentifier( entity, result );
      //reset the version
      VersionProperty versionProperty = entityMetamodel.getVersionProperty();
      if ( entityMetamodel.isVersioned() ) {
        setPropertyValue(
                entity,
                entityMetamodel.getVersionPropertyIndex(),
            versionProperty.getUnsavedValue().getDefaultValue( currentVersion )
          );
      }
      //return the id, so we can use it to reset the proxy id
      //return result;
    }
View Full Code Here

TOP

Related Classes of org.hibernate.tuple.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.