Guest User

Untitled

a guest
Apr 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //All of the fancy annotations are mostly here if you want to generate the DDL via Hibernate
  2. @Size(min = 10) // If you want to limit the max size of the array
  3. @ElementCollection(fetch = FetchType.EAGER)
  4. @CollectionTable(name = 'IssueRequestor', joinColumns = [@JoinColumn(name = 'IssueID')],
  5. uniqueConstraints = [ @UniqueConstraint(name = 'IssueRequestor_uc_issueId_requestor',
  6. columnNames = ['IssueID', 'requestor'])])
  7. @Column(name = 'requestor', length = 150)
  8. Set<String> requestors = []
Add Comment
Please, Sign In to add comment