org.hibernate.metamodel.mapping.AttributeMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core-jakarta Show documentation
Show all versions of hibernate-core-jakarta Show documentation
Hibernate O/RM implementation of the Jakarta Persistence specification
The newest version!
/*
* 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 http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.metamodel.mapping;
import org.hibernate.engine.spi.CascadeStyle;
import org.hibernate.engine.spi.CascadeStyles;
import org.hibernate.property.access.spi.PropertyAccess;
import org.hibernate.type.descriptor.java.MutabilityPlan;
/**
* @author Steve Ebersole
*/
public interface AttributeMetadata {
PropertyAccess getPropertyAccess();
MutabilityPlan getMutabilityPlan();
boolean isNullable();
boolean isInsertable();
boolean isUpdatable();
boolean isIncludedInDirtyChecking();
boolean isIncludedInOptimisticLocking();
default CascadeStyle getCascadeStyle() {
// todo (6.0) - implement in each subclass.
// For now return a default NONE value for all contributors since this isn't
// to be supported as a part of Alpha1.
return CascadeStyles.NONE;
}
}