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

org.hibernate.search.mapper.javabean.common.EntityReference Maven / Gradle / Ivy

The newest version!
/*
 * Hibernate Search, full-text search for your domain model
 *
 * 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.search.mapper.javabean.common;

/**
 * A reference to an indexed entity.
 */
public interface EntityReference {

	/**
	 * @return The type of the referenced entity.
	 */
	Class getType();

	/**
	 * @return The name of the referenced entity in the Hibernate Search mapping.
	 * @see org.hibernate.search.mapper.javabean.mapping.SearchMappingBuilder#addEntityType(Class, String)
	 */
	String getName();

	/**
	 * @return The identifier of the referenced entity,
	 * i.e. the value of the property marked as {@code @DocumentId}.
	 */
	Object getId();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy