All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.tuple.entity.EntityBasedCompositionAttribute Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show 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 .
 */
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 - 2024 Weber Informatics LLC | Privacy Policy