Skip to content

Commit

Permalink
[SHIBUI-522]
Browse files Browse the repository at this point in the history
Added @OrderColumn. Hashcode comparison will fail without it.
  • Loading branch information
Bill Smith committed Jun 4, 2018
1 parent 857bb53 commit 609842f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OrderColumn;
import java.util.ArrayList;
import java.util.List;

Expand All @@ -31,5 +32,6 @@ public EntityRoleWhiteListFilter() {
@ElementCollection
@CollectionTable(name="RETAINED_ROLES", joinColumns=@JoinColumn(name="ENTITY_ROLE_WHITELIST_FILTER_ID"))
@Column(name="RETAINED_ROLE")
@OrderColumn
private List<String> retainedRoles = new ArrayList<>();
}

0 comments on commit 609842f

Please sign in to comment.