Example usage for org.hibernate.mapping PersistentClass getIdentityTable

List of usage examples for org.hibernate.mapping PersistentClass getIdentityTable

Introduction

In this page you can find the example usage for org.hibernate.mapping PersistentClass getIdentityTable.

Prototype

public Table getIdentityTable() 

Source Link

Usage

From source file:de.iteratec.iteraplan.businesslogic.exchange.elasticmi.HbMappedClass.java

License:Open Source License

/**
 * Use this constructor for abstract classes only!
 * (e.g. {@link AbstractHierarchicalEntity})
 * //from w ww. jav  a2 s .  c om
 * @param allHbMappedClasses holds the references to all other initialized {@link HbMappedClass}es
 * @param persistentClass the representing entity class
 */
public HbMappedClass(Map<String, HbMappedClass> allHbMappedClasses, PersistentClass persistentClass) {
    this.allHbMappedClasses = Preconditions.checkNotNull(allHbMappedClasses);
    this.metaData = null;
    this.persistentClass = Preconditions.checkNotNull(persistentClass);
    this.table = persistentClass.getIdentityTable();
    initProperties();
}

From source file:de.iteratec.iteraplan.businesslogic.exchange.elasticmi.HbMappedClass.java

License:Open Source License

/**
 * Standard Constructor//from  ww w  . ja  v a  2s .c o m
 * 
 * @param allHbMappedClasses holds the references to all other initialized HbMappedClasses
 * @param metaData contains all necessary hibernate mapping information
 * @param persistentClass the representing entity class ({@link PersistentClass})
 */
public HbMappedClass(Map<String, HbMappedClass> allHbMappedClasses, ClassMetadata metaData,
        PersistentClass persistentClass) {

    this.allHbMappedClasses = Preconditions.checkNotNull(allHbMappedClasses);
    this.metaData = Preconditions.checkNotNull(metaData);
    this.persistentClass = Preconditions.checkNotNull(persistentClass);
    this.table = persistentClass.getIdentityTable();
    initProperties();
}