Move field length into constants
This commit is contained in:
parent
c8dfd00864
commit
2cf48eb9b9
|
@ -51,6 +51,8 @@ public class EmpiLink {
|
|||
public static final int VERSION_LENGTH = 16;
|
||||
private static final int MATCH_RESULT_LENGTH = 16;
|
||||
private static final int LINK_SOURCE_LENGTH = 16;
|
||||
public static final int TARGET_TYPE_LENGTH = 40;
|
||||
|
||||
|
||||
@SequenceGenerator(name = "SEQ_EMPI_LINK_ID", sequenceName = "SEQ_EMPI_LINK_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_EMPI_LINK_ID")
|
||||
|
@ -111,7 +113,7 @@ public class EmpiLink {
|
|||
myVersion = theVersion;
|
||||
}
|
||||
|
||||
@Column(name = "TARGET_TYPE", nullable = true, length = 40)
|
||||
@Column(name = "TARGET_TYPE", nullable = true, length = TARGET_TYPE_LENGTH)
|
||||
private String myEmpiTargetType;
|
||||
|
||||
public Long getId() {
|
||||
|
|
|
@ -140,7 +140,7 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
|||
init510_20200725();
|
||||
|
||||
//EMPI Target Type
|
||||
empiLink.addColumn("20200727.1","TARGET_TYPE").nullable().type(ColumnTypeEnum.STRING, 40);
|
||||
empiLink.addColumn("20200727.1","TARGET_TYPE").nullable().type(ColumnTypeEnum.STRING, EmpiLink.TARGET_TYPE_LENGTH);
|
||||
}
|
||||
|
||||
protected void init510_20200725() {
|
||||
|
|
Loading…
Reference in New Issue