Skip to content

Commit ff5d1d8

Browse files
committed
Merge branch 'icat-schema-extension-affiliation' into icat-schema-extension
2 parents e2d3bdf + 4340810 commit ff5d1d8

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

src/main/java/org/icatproject/core/entity/Affiliation.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ public class Affiliation extends EntityBaseBean implements Serializable {
2020
@ManyToOne(fetch = FetchType.LAZY)
2121
private DataPublicationUser user;
2222

23-
@Comment("Name and optionally address of the affiliation")
24-
@Column(name = "NAME", nullable = false, length = 511)
23+
@Comment("An internal name for that affiliation entry, possibly the organization name")
24+
@Column(name = "NAME", nullable = false, length = 255)
2525
private String name;
2626

27+
@Comment("The full reference of the affiliation, optionally including street address and department, as it should appear in the publication")
28+
@Column(length = 1023)
29+
private String fullReference;
30+
2731
@Comment("Identifier such as ROR or ISNI")
2832
private String pid;
2933

@@ -39,6 +43,10 @@ public String getName() {
3943
return name;
4044
}
4145

46+
public String getFullReference() {
47+
return fullReference;
48+
}
49+
4250
public String getPid() {
4351
return pid;
4452
}
@@ -51,6 +59,10 @@ public void setName(String name) {
5159
this.name = name;
5260
}
5361

62+
public void setFullReference(String fullReference) {
63+
this.fullReference = fullReference;
64+
}
65+
5466
public void setPid(String pid) {
5567
this.pid = pid;
5668
}

src/main/scripts/upgrade_mysql_5_0.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ CREATE TABLE AFFILIATION (
105105
ID BIGINT NOT NULL AUTO_INCREMENT,
106106
CREATE_ID VARCHAR(255) NOT NULL,
107107
CREATE_TIME DATETIME NOT NULL,
108+
FULLREFERENCE varchar(1023) DEFAULT NULL,
108109
MOD_ID VARCHAR(255) NOT NULL,
109110
MOD_TIME DATETIME NOT NULL,
110-
NAME VARCHAR(511) NOT NULL,
111+
NAME VARCHAR(255) NOT NULL,
111112
PID VARCHAR(255),
112113
DATAPUBLICATIONUSER_ID BIGINT NOT NULL,
113114
PRIMARY KEY (ID)

src/main/scripts/upgrade_oracle_5_0.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ CREATE TABLE AFFILIATION (
105105
ID NUMBER(19) NOT NULL,
106106
CREATE_ID VARCHAR2(255) NOT NULL,
107107
CREATE_TIME TIMESTAMP NOT NULL,
108+
FULLREFERENCE VARCHAR2(1023),
108109
MOD_ID VARCHAR2(255) NOT NULL,
109110
MOD_TIME TIMESTAMP NOT NULL,
110-
NAME VARCHAR2(511) NOT NULL,
111+
NAME VARCHAR2(255) NOT NULL,
111112
PID VARCHAR2(255),
112113
DATAPUBLICATIONUSER_ID NUMBER(19) NOT NULL,
113114
PRIMARY KEY (ID)

0 commit comments

Comments
 (0)