org.hibernate.search.mapper.javabean.common.EntityReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-mapper-javabean Show documentation
Show all versions of hibernate-search-mapper-javabean Show documentation
Hibernate Search Mapper for POJOs following the JavaBean conventions
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