Commit ae74deec authored by Matija Obreza's avatar Matija Obreza

Merge branch 'ui-298-parners-list' into 'master'

Added force loading of partner country codes

See merge request genesys-pgr/genesys-server!394
parents 278df2de 39d4d4ab
...@@ -96,7 +96,7 @@ public class Partner extends UuidModel implements SelfCleaning, AclAwareModel { ...@@ -96,7 +96,7 @@ public class Partner extends UuidModel implements SelfCleaning, AclAwareModel {
@OneToMany(mappedBy = "owner", fetch = FetchType.LAZY) @OneToMany(mappedBy = "owner", fetch = FetchType.LAZY)
private List<FaoInstitute> institutes; private List<FaoInstitute> institutes;
@ElementCollection @ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(name = "partner_country", joinColumns = @JoinColumn(name = "partnerId"), uniqueConstraints = { @UniqueConstraint(columnNames = { "partnerId", "code" }) }) @CollectionTable(name = "partner_country", joinColumns = @JoinColumn(name = "partnerId"), uniqueConstraints = { @UniqueConstraint(columnNames = { "partnerId", "code" }) })
@Column(name = "code", length = 3, nullable = false) @Column(name = "code", length = 3, nullable = false)
private Set<String> countryCodes; private Set<String> countryCodes;
......
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