PersistentClass mappedEntity, IdentifierGenerator generator) { String mappedUnsavedValue = mappedEntity.getIdentifier().getNullValue(); Type type = mappedEntity.getIdentifier().getType(); Property property = mappedEntity.getIdentifierProperty();
Property property, boolean lazyAvailable) { String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = mappedEntity.getIdentifier().getNullValue(); Type type = mappedEntity.getIdentifier().getType(); Property property = mappedEntity.getIdentifierProperty();
String mappedUnsavedValue = mappedEntity.getIdentifier().getNullValue(); Type type = mappedEntity.getIdentifier().getType(); Property property = mappedEntity.getIdentifierProperty();
String mappedUnsavedValue = mappedEntity.getIdentifier().getNullValue(); Type type = mappedEntity.getIdentifier().getType(); Property property = mappedEntity.getIdentifierProperty();
String mappedUnsavedValue = mappedEntity.getIdentifier().getNullValue(); Type type = mappedEntity.getIdentifier().getType(); Property property = mappedEntity.getIdentifierProperty();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
String mappedUnsavedValue = ( (KeyValue) property.getValue() ).getNullValue();
@SuppressWarnings({"unchecked", "WeakerAccess"}) public VersionDescriptorImpl( EntityHierarchyImpl runtimeModelHierarchy, RootClass bootModelRootEntity, RuntimeModelCreationContext creationContext) { super( runtimeModelHierarchy.getRootEntityType(), bootModelRootEntity.getVersionAttributeMapping(), runtimeModelHierarchy.getRootEntityType().getRepresentationStrategy().generatePropertyAccess( bootModelRootEntity, bootModelRootEntity.getVersionAttributeMapping(), runtimeModelHierarchy.getRootEntityType(), creationContext.getSessionFactory().getSessionFactoryOptions().getBytecodeProvider() ), Disposition.VERSION ); final BasicValueMapping<J> basicValueMapping = (BasicValueMapping<J>) bootModelRootEntity.getVersionAttributeMapping().getValueMapping(); this.column = creationContext.getDatabaseObjectResolver().resolveColumn( basicValueMapping.getMappedColumn() ); this.valueMapper = basicValueMapping.getResolution().getValueMapper(); this.unsavedValue =( (KeyValue) basicValueMapping ).getNullValue(); this.versionSupport = valueMapper.getDomainJavaDescriptor().getVersionSupport(); if ( versionSupport == null ) { throw new HibernateException( "JavaTypeDescriptor [" + valueMapper.getDomainJavaDescriptor() + "] associated with VersionDescriptor [" + runtimeModelHierarchy.getRootEntityType().getEntityName() + "] did not define VersionSupport" ); } instantiationComplete( bootModelRootEntity.getVersionAttributeMapping(), creationContext ); }