Skip to content

Commit

Permalink
TRUNK-5918 Switching from Hibernate Mappings to Annotations for Conce…
Browse files Browse the repository at this point in the history
…ptName Domain.
  • Loading branch information
UNCANNY69 committed Dec 28, 2024
1 parent 8bf1363 commit 4052954
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/src/main/java/org/openmrs/ConceptName.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@
})
@Analyzer(definition = "ConceptNameAnalyzer")
@AttributeOverrides(value = {
@AttributeOverride(
name = "uuid",
column = @Column(name = "uuid", length = 38, unique = true)
)
@AttributeOverride(name = "uuid", column = @Column(name = "uuid", length = 38, unique = true))
})
@Audited
public class ConceptName extends BaseOpenmrsObject implements Auditable, Voidable, java.io.Serializable {
Expand All @@ -84,6 +81,7 @@ public class ConceptName extends BaseOpenmrsObject implements Auditable, Voidabl
@GeneratedValue(strategy = GenerationType.IDENTITY)
@DocumentId
private Integer conceptNameId;

@ManyToOne
@JoinColumn(name = "concept_id",nullable = false)
@IndexedEmbedded(includeEmbeddedObjectId = true)
Expand Down

0 comments on commit 4052954

Please sign in to comment.