Commit 0f430471 authored by Matija Obreza's avatar Matija Obreza
Browse files

Sort WIEWS institutes in Organizations by code

parent 9e6ead01
......@@ -27,6 +27,7 @@ import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import org.genesys2.server.model.BusinessModel;
......@@ -51,6 +52,7 @@ public class Organization extends BusinessModel {
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, targetEntity = FaoInstitute.class)
@JoinTable(name = "organizationinstitute", joinColumns = @JoinColumn(name = "organizationId"), inverseJoinColumns = @JoinColumn(name = "instituteId"))
@OrderBy("code")
private List<FaoInstitute> members = new ArrayList<FaoInstitute>();
public String getSlug() {
......
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