@IndexedEmbedded(includeEmbeddedObjectId = true) private Concept concept; @IndexedEmbedded(includeEmbeddedObjectId = true) private Set<DrugReferenceMap> drugReferenceMaps;
private Concept concept; @IndexedEmbedded(includeEmbeddedObjectId = true) private ConceptReferenceTerm conceptReferenceTerm;
private Drug drug; @IndexedEmbedded(includeEmbeddedObjectId = true) private ConceptReferenceTerm conceptReferenceTerm;
@IndexedEmbedded(includeEmbeddedObjectId = true) private ConceptDatatype datatype; @IndexedEmbedded(includeEmbeddedObjectId = true) private ConceptClass conceptClass; @IndexedEmbedded(includeEmbeddedObjectId = true) private Collection<ConceptMap> conceptMappings;
@NotNull @ManyToOne @JoinColumn(name = "glossaryId", nullable = false) @IndexedEmbedded public Glossary getGlossary() { return glossary; } // TODO: this should be many to one
private Integer personAttributeId; @IndexedEmbedded(includeEmbeddedObjectId = true) private Person person; @IndexedEmbedded private PersonAttributeType attributeType;
@Embedded @IndexedEmbedded public Address getAddress() { return address; }
@NaturalId @ManyToOne @JoinColumn(name = "tf_id") @IndexedEmbedded public HTextFlow getTextFlow() { return textFlow; }
private Integer patientIdentifierId; @IndexedEmbedded(includeEmbeddedObjectId = true) private Patient patient; private String identifier; @IndexedEmbedded(includeEmbeddedObjectId = true) private PatientIdentifierType identifierType;
private Integer conceptNameId; @IndexedEmbedded(includeEmbeddedObjectId = true) private Concept concept;
@Entity @Indexed public class A1 { @Id @GeneratedValue private long id; @OneToOne @IndexedEmbedded(includeEmbeddedObjectId = true) private B b; }
@Entity @Indexed public class A2 { @Id @GeneratedValue private long id; @OneToOne @IndexedEmbedded(includeEmbeddedObjectId = false) private B b; }
@Entity @Indexed public class A { @Id @GeneratedValue private long id; @OneToOne @IndexedEmbedded private B b; }
@Field(store = Store.YES, indexNullAs = NULL_NUMERIC_TOKEN, analyze = Analyze.NO) @ElementCollection @IndexedEmbedded @CollectionTable(name = "NumericNullIndexed", joinColumns = @JoinColumn(name = "iterable_id")) @Column(name = "numericNullIndexed") public Set<Integer> getNumericNullIndexed() { return numericNullIndexed; }
@Field(store = Store.YES) @ElementCollection @IndexedEmbedded @CollectionTable(name = "NumericNullNotIndexed", joinColumns = @JoinColumn(name = "iterable_id")) @Column(name = "numericNullNotIndexed") public List<Long> getNumericNullNotIndexed() { return numericNullNotIndexed; }
@Field(store = Store.YES) @ElementCollection @IndexedEmbedded @CollectionTable(name = "NumericNullNotIndexed", joinColumns = @JoinColumn(name = "iterable_id")) @Column(name = "numericNullNotIndexed") @MapKeyColumn(nullable = false) public Map<Integer, Long> getNumericNullNotIndexed() { return numericNullNotIndexed; }
@Indexed public abstract static class AbstractC { @DocumentId long id; @IndexedEmbedded(includePaths = { "snafu", "fubar" }) List<D> list; }
@ElementCollection @IndexedEmbedded @MapKeyColumn @Field(bridge = @FieldBridge(impl = CategoriesBridge.class)) public Map<Long, String> getCategories() { if ( categories == null ) { categories = new HashMap<Long, String>(); } return categories; }
@Field(analyze = Analyze.NO, store = Store.YES) @ElementCollection @IndexedEmbedded @DateBridge(resolution = Resolution.SECOND) @OrderColumn @CollectionTable(name = "Dates", joinColumns = @JoinColumn(name = "array_id")) @Column(name = "dates") public Date[] getDates() { return dates; }
private Integer personNameId; @IndexedEmbedded(includeEmbeddedObjectId = true) private Person person;