public boolean isMutable() { return getSuperclass().isMutable(); } public boolean isInherited() {
@SuppressWarnings("UnusedReturnValue") public Builder addEntityConfig(PersistentClass bootEntityDescriptor, AccessType accessType) { if ( entityConfigsByRootName == null ) { entityConfigsByRootName = new HashMap<>(); } // todo (5.3) : this is another place where having `BootstrapContext` / `TypeConfiguration` helps // would allow us to delay the attempt to resolve the comparator (usual timing issues wrt Type resolution) final NavigableRole rootEntityName = new NavigableRole( bootEntityDescriptor.getRootClass().getEntityName() ); final EntityDataCachingConfigImpl entityDataCachingConfig = entityConfigsByRootName.computeIfAbsent( rootEntityName, x -> new EntityDataCachingConfigImpl( rootEntityName, bootEntityDescriptor.isVersioned() ? (Supplier<Comparator>) () -> ( (VersionType) bootEntityDescriptor.getVersion().getType() ).getComparator() : null, bootEntityDescriptor.isMutable(), accessType ) ); if ( bootEntityDescriptor == bootEntityDescriptor.getRootClass() ) { entityDataCachingConfig.addCachedType( rootEntityName ); } else { entityDataCachingConfig.addCachedType( new NavigableRole( bootEntityDescriptor.getEntityName() ) ); } return this; }
!ReflectHelper.isFinalClass( persistentClass.getProxyInterface() ) ); mutable = persistentClass.isMutable(); if ( persistentClass.isAbstract() == null ) {
public boolean isMutable() { return getSuperclass().isMutable(); } public boolean isInherited() {
public boolean isMutable() { return getSuperclass().isMutable(); } public boolean isInherited() {
public boolean isMutable() { return getSuperclass().isMutable(); } public boolean isInherited() {
public boolean isMutable() { return getSuperclass().isMutable(); } public boolean isInherited() {
public boolean isMutable() { return getSuperclass().isMutable(); }
public static CacheDataDescriptionImpl decode(PersistentClass model) { return new CacheDataDescriptionImpl( model.isMutable(), model.isVersioned(), model.isVersioned() ? ( ( VersionType ) model.getVersion().getType() ).getComparator() : null ); }
private MutabilityPlan getMutabilityPlan() { if ( persistentClass.isMutable() ) { return new EntityMutabilityPlanImpl( MutableEntityEntryFactory.INSTANCE, true ); } else { return new EntityMutabilityPlanImpl( (status, loadedState, rowId, id, version, lockMode, existsInDatabase, descriptor, disableVersionIncrement, persistenceContext) -> new ImmutableEntityEntry( status, loadedState, rowId, id, version, lockMode, existsInDatabase, descriptor, disableVersionIncrement, persistenceContext ), false ); } } }
public static CacheDataDescriptionImpl decode(PersistentClass model) { return new CacheDataDescriptionImpl( model.isMutable(), model.isVersioned(), model.isVersioned() ? ( ( VersionType ) model.getVersion().getType() ).getComparator() : null ); }
model.getCacheConcurrencyStrategy(), cacheRegion, model.isMutable(), settings, properties
bootEntityDescriptor.isMutable(), accessType
mutable = persistentClass.isMutable(); isAbstract = persistentClass.isAbstract() || ( persistentClass.hasPojoRepresentation() &&
!ReflectHelper.isFinalClass( persistentClass.getProxyInterface() ) ); mutable = persistentClass.isMutable(); if ( persistentClass.isAbstract() == null ) {
!ReflectHelper.isFinalClass( persistentClass.getProxyInterface() ) ); mutable = persistentClass.isMutable(); if ( persistentClass.isAbstract() == null ) {