Revision f04abc2f
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/media/Rights.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import java.net.URI; |
13 | 13 |
|
14 |
import javax.persistence.AssociationOverride; |
|
15 |
import javax.persistence.AssociationOverrides; |
|
16 | 14 |
import javax.persistence.Entity; |
17 | 15 |
import javax.persistence.FetchType; |
18 |
import javax.persistence.JoinColumn; |
|
19 |
import javax.persistence.JoinTable; |
|
20 | 16 |
import javax.persistence.ManyToOne; |
21 | 17 |
import javax.persistence.Table; |
22 | 18 |
import javax.xml.bind.annotation.XmlAccessType; |
... | ... | |
59 | 55 |
@Entity |
60 | 56 |
@Audited |
61 | 57 |
@Table(name = "RightsInfo") //to avoid conflicts with reserved database words |
62 |
@AssociationOverrides({ |
|
63 |
@AssociationOverride(name="annotations",joinTable=@JoinTable(joinColumns = @JoinColumn(name="RightsInfo_id"))), |
|
64 |
@AssociationOverride(name="markers",joinTable=@JoinTable(joinColumns = @JoinColumn(name="RightsInfo_id"))) |
|
65 |
}) |
|
66 | 58 |
public class Rights extends LanguageStringBase implements Cloneable{ |
67 | 59 |
private static final long serialVersionUID = 4920749849951432284L; |
68 | 60 |
private static final Logger logger = Logger.getLogger(Rights.class); |
Also available in: Unified diff
Adapt table and column names to hibernate 5 naming strategy #5369
... and some other changes to table/attribute names