import org.hibernate.search.annotations.FieldBridge;\r
import org.hibernate.search.annotations.IndexedEmbedded;\r
\r
-import eu.etaxonomy.cdm.hibernate.search.DefinedTermBaseFieldBridge;\r
+import eu.etaxonomy.cdm.hibernate.search.DefinedTermBaseClassBridge;\r
import eu.etaxonomy.cdm.hibernate.search.MultilanguageTextFieldBridge;\r
import eu.etaxonomy.cdm.jaxb.MultilanguageTextAdapter;\r
import eu.etaxonomy.cdm.model.common.IMultiLanguageTextHolder;\r
@XmlIDREF\r
@XmlSchemaType(name = "IDREF")\r
@ManyToOne(fetch = FetchType.LAZY)\r
- //UNDER CONSTRUCION\r
- @Field\r
- @FieldBridge(impl=DefinedTermBaseFieldBridge.class)\r
+ @IndexedEmbedded\r
private State state;\r
\r
@XmlElementWrapper(name = "Modifiers")\r
@XmlElement(name = "Modifier")\r
@ManyToMany(fetch = FetchType.LAZY)\r
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE})\r
- //UNDER CONSTRUCION\r
-// @Field\r
-// @FieldBridge(impl=DefinedTermBaseFieldBridge.class)\r
@IndexedEmbedded\r
// @NotNull // avoids creating a UNIQUE key for this field -> not needed for ManyToMany\r
private Set<Modifier> modifiers = new HashSet<Modifier>();\r