org.hibernate.tuple.entity.EntityBasedCompositionAttribute Maven / Gradle / Ivy
/*
* 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.tuple.entity;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.walking.spi.CompositionDefinition;
import org.hibernate.tuple.BaselineAttributeInformation;
import org.hibernate.tuple.component.AbstractCompositionAttribute;
import org.hibernate.type.CompositeType;
/**
* @author Steve Ebersole
*/
public class EntityBasedCompositionAttribute
extends AbstractCompositionAttribute
implements CompositionDefinition {
public EntityBasedCompositionAttribute(
EntityPersister source,
SessionFactoryImplementor factory,
int attributeNumber,
String attributeName,
CompositeType attributeType,
BaselineAttributeInformation baselineInfo) {
super( source, factory, attributeNumber, attributeName, attributeType, 0, baselineInfo );
}
@Override
protected EntityPersister locateOwningPersister() {
return (EntityPersister) getSource();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy