org.hibernate.cfg.PropertyHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-annotations
Show all versions of hibernate-annotations
Annotations metadata for Hibernate
package org.hibernate.cfg;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import org.hibernate.mapping.KeyValue;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Property;
import org.hibernate.mapping.Table;
import org.hibernate.mapping.Join;
/**
* Property holder abstract property containers from their direct implementation
*
* @author Emmanuel Bernard
*/
public interface PropertyHolder {
String getClassName();
String getEntityOwnerClassName();
Table getTable();
void addProperty(Property prop);
KeyValue getIdentifier();
PersistentClass getPersistentClass();
boolean isComponent();
void setParentProperty(String parentProperty);
String getPath();
/**
* return null if the column is not overridden, or an array of column if true
*/
Column[] getOverriddenColumn(String propertyName);
/**
* return null if the column is not overridden, or an array of column if true
*/
JoinColumn[] getOverriddenJoinColumn(String propertyName);
String getEntityName();
void addProperty(Property prop, Ejb3Column[] columns);
Join addJoin(JoinTable joinTableAnn, boolean noDelayInPkColumnCreation);
}