publicabstract class Entity {
@IndexedEmbedded
private EntitySummary entitySummary;
}
public class EntitySummary {
@IndexedEmbedded
private EntityState state;
@ContainedIn
private Entity entity;
}
@Indexed(index = "Item")
public class IndexedItem extends Entity {
}
//Please note that this class is not indexed.
public class NonIndexedItem extends Entity {
}
Persisting a NonIndexedItem can lead to
org.hibernate.search.SearchException: Unable to perform work. Entity Class is not @Indexed nor hosts @ContainedIn: class com.bla.NonIndexedItem
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira