Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //All of the fancy annotations are mostly here if you want to generate the DDL via Hibernate
- @Size(min = 10) // If you want to limit the max size of the array
- @ElementCollection(fetch = FetchType.EAGER)
- @CollectionTable(name = 'IssueRequestor', joinColumns = [@JoinColumn(name = 'IssueID')],
- uniqueConstraints = [ @UniqueConstraint(name = 'IssueRequestor_uc_issueId_requestor',
- columnNames = ['IssueID', 'requestor'])])
- @Column(name = 'requestor', length = 150)
- Set<String> requestors = []
Add Comment
Please, Sign In to add comment