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

org.hibernate.metamodel.internal.EmbeddableTypeImpl 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.metamodel.internal;

import java.io.Serializable;
import javax.persistence.metamodel.EmbeddableType;

import org.hibernate.type.ComponentType;

/**
 * @author Emmanuel Bernard
 */
public class EmbeddableTypeImpl
		extends AbstractManagedType
		implements EmbeddableType, Serializable {

	private final AbstractManagedType parent;
	private final ComponentType hibernateType;

	public EmbeddableTypeImpl(Class javaType, AbstractManagedType parent, ComponentType hibernateType) {
		super( javaType, null, null );
		this.parent = parent;
		this.hibernateType = hibernateType;
	}

	public PersistenceType getPersistenceType() {
		return PersistenceType.EMBEDDABLE;
	}

	public AbstractManagedType getParent() {
		return parent;
	}

	public ComponentType getHibernateType() {
		return hibernateType;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy