Refine search
@DocumentId private Integer conceptReferenceTermId; @Field(analyze = Analyze.NO) private String code;
@Indexed public class Drug extends BaseChangeableOpenmrsMetadata { @DocumentId private Integer drugId;
@Indexed @AnalyzerDef(name = "ConceptNameAnalyzer", tokenizer = @TokenizerDef(factory = StandardTokenizerFactory.class), filters = { @TokenFilterDef(factory = StandardFilterFactory.class), @TokenFilterDef(factory = LowerCaseFilterFactory.class) }) @DocumentId private Integer conceptNameId; private Concept concept; @Field private String name; @Field(analyze = Analyze.NO) @FieldBridge(impl = LocaleFieldBridge.class) @Field private Boolean voided = false;
@Indexed @Entity public static class CalendarFailureTestEntity { @DocumentId @Id Long id; @Field(indexNullAs = "01/01/2013") // Expected format is ISO-8601 (yyyy-MM-dd'T'HH:mm:ssZ) Calendar myField; }
@Id @GeneratedValue(strategy = GenerationType.AUTO) @DocumentId public Long getId() { return id; }
/** * @author Davide D'Alto */ @Entity class DocumentEntity { @Id @GeneratedValue long id; @DocumentId String documentId; @OneToOne @ContainedIn EntityC c; public DocumentEntity() { } public DocumentEntity(String documentId) { this.documentId = documentId; } }
@Id @GeneratedValue @DocumentId @Field(name = "idSort") @SortableField(forField = "idSort") public int getId() { return id; }
@Indexed @Entity public static class OffsetTimeFailureTestEntity { @DocumentId @Id Long id; @Field(indexNullAs = "18:25:00[UTC]") // Expected format is ISO-8601 (HH:mm:ssZ) OffsetTime myField; }
@Id @DocumentId public Integer getId() { return id; }
@MappedSuperclass @Inheritance(strategy = InheritanceType.JOINED) @Table(name = "BaseEntity") public abstract static class BaseEntity { @Id @DocumentId @Field(name = "idSort") @SortableField(forField = "idSort") Integer id; @Field String name; public String getName() { return name; } }
@Indexed public class PatientIdentifier extends BaseChangeableOpenmrsData implements java.io.Serializable, Cloneable, Comparable<PatientIdentifier> { @DocumentId private Integer patientIdentifierId; @Field(name = "identifierPhrase", analyzer = @Analyzer(definition = LuceneAnalyzers.PHRASE_ANALYZER), boost = @Boost(8f)), @Field(name = "identifierExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)), @Field(name = "identifierStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)), @Field(name = "identifierAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER)) })
@DocumentId private Integer patientIdentifierTypeId; @Field private Boolean required = Boolean.FALSE;
@Indexed @Entity private static class SimpleEntity { @DocumentId @Id Long id; @Field String myField; }
@Id @DocumentId public Long getId() { return id; }
@Id @DocumentId @Field( name = "id_forIntegerSort", store = Store.NO, index = Index.NO ) @NumericField @SortableFields({ @SortableField(forField = "id"), @SortableField(forField = "id_forIntegerSort") }) public Integer getId() { return id; }
@Indexed public class PersonAttribute extends BaseChangeableOpenmrsData implements java.io.Serializable, Comparable<PersonAttribute> { @DocumentId private Integer personAttributeId; @Field(name = "valuePhrase", analyzer = @Analyzer(definition = LuceneAnalyzers.PHRASE_ANALYZER), boost = @Boost(8f)), @Field(name = "valueExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(4f)), @Field(name = "valueStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(2f)), @Field(name = "valueAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER)) })
@DocumentId protected Integer personId; private Set<PersonAttribute> attributes = null; @Field private String gender; @Field private Boolean dead = false; @Field private boolean isPatient;
@Indexed @Entity public static class SimpleTextEntity { @DocumentId @Id Long id; @Field String myField; }
@Id @DocumentId public Integer getId() { return id; }
@Indexed public class PersonName extends BaseChangeableOpenmrsData implements java.io.Serializable, Cloneable, Comparable<PersonName> { @DocumentId private Integer personNameId; @Field(name = "givenNameExact", analyzer = @Analyzer(definition = LuceneAnalyzers.EXACT_ANALYZER), boost = @Boost(8f)), @Field(name = "givenNameStart", analyzer = @Analyzer(definition = LuceneAnalyzers.START_ANALYZER), boost = @Boost(4f)), @Field(name = "givenNameAnywhere", analyzer = @Analyzer(definition = LuceneAnalyzers.ANYWHERE_ANALYZER), boost = @Boost(2f)) }) private String givenName;