Revision ef1b5da2
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Group.java | ||
---|---|---|
15 | 15 |
import javax.persistence.Column; |
16 | 16 |
import javax.persistence.Entity; |
17 | 17 |
import javax.persistence.FetchType; |
18 |
import javax.persistence.JoinColumn; |
|
19 |
import javax.persistence.JoinTable; |
|
20 | 18 |
import javax.persistence.ManyToMany; |
21 | 19 |
import javax.persistence.Table; |
22 | 20 |
import javax.validation.constraints.NotNull; |
... | ... | |
87 | 85 |
@XmlIDREF |
88 | 86 |
@XmlSchemaType(name = "IDREF") |
89 | 87 |
@ManyToMany(fetch = FetchType.LAZY, targetEntity = GrantedAuthorityImpl.class) |
90 |
//preliminary #5369 |
|
91 |
@JoinTable(joinColumns = @JoinColumn( name="PermissionGroup_id")) |
|
92 | 88 |
@Cascade({CascadeType.SAVE_UPDATE,CascadeType.MERGE}) |
93 | 89 |
protected Set <GrantedAuthority> grantedAuthorities = new HashSet<GrantedAuthority>(); |
94 | 90 |
|
Also available in: Unified diff
Adapt table and column names to hibernate 5 naming strategy #5369
... and some other changes to table/attribute names