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 { ...@@ -84,8 +84,8 @@ public class Accession implements java.io.Serializable {
this.id = alisId; this.id = alisId;
} }
@ManyToOne(cascade = {}, optional = false) @ManyToOne(cascade = {}, optional = true)
@JoinColumn(name = "instituteId", nullable = false) @JoinColumn(name = "instituteId")
public FaoInstitute getInstitute() { public FaoInstitute getInstitute() {
return this.institute; return this.institute;
} }
...@@ -302,6 +302,6 @@ public class Accession implements java.io.Serializable { ...@@ -302,6 +302,6 @@ public class Accession implements java.io.Serializable {
@Override @Override
public String toString() { 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);
} }
} }
Supports Markdown
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