org.hibernate.mapping.DependantBasicValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.mapping;
import org.hibernate.boot.spi.MetadataBuildingContext;
/**
* @author Steve Ebersole
*/
public class DependantBasicValue extends BasicValue {
private final BasicValue referencedValue;
private final boolean nullable;
private final boolean updateable;
public DependantBasicValue(
MetadataBuildingContext buildingContext,
Table table,
BasicValue referencedValue,
boolean nullable,
boolean updateable) {
super( buildingContext, table );
this.referencedValue = referencedValue;
this.nullable = nullable;
this.updateable = updateable;
}
private DependantBasicValue(DependantBasicValue original) {
super( original );
this.referencedValue = original.referencedValue.copy();
this.nullable = original.nullable;
this.updateable = original.updateable;
}
@Override
public DependantBasicValue copy() {
return new DependantBasicValue( this );
}
@Override
protected Resolution> buildResolution() {
return referencedValue.resolve();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy