Commit 9ebad3c0 authored by Matija Obreza's avatar Matija Obreza
Browse files

Institute not required

parent 632f5e1a
......@@ -84,8 +84,8 @@ public class Accession implements java.io.Serializable {
this.id = alisId;
}
@ManyToOne(cascade = {}, optional = false)
@JoinColumn(name = "instituteId", nullable = false)
@ManyToOne(cascade = {}, optional = true)
@JoinColumn(name = "instituteId")
public FaoInstitute getInstitute() {
return this.institute;
}
......@@ -302,6 +302,6 @@ public class Accession implements java.io.Serializable {
@Override
public String toString() {
return MessageFormat.format("Accession id={0,number,#} A={3} inst={1} genus={2}", id, institute.getCode(), genus, accNumbHi);
return MessageFormat.format("Accession id={0,number,#} A={3} inst={1} genus={2}", id, instituteCode, genus, accNumbHi);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment