Revision 47067
Added by Panagiotis Kanakakis about 7 years ago
User.java | ||
---|---|---|
46 | 46 |
nullable = false, updatable = false) }) |
47 | 47 |
private List<Affiliation> affiliations = new ArrayList<>(); |
48 | 48 |
|
49 |
@ManyToOne(fetch = FetchType.LAZY)
|
|
50 |
@JoinColumn |
|
49 |
@ManyToOne(cascade=CascadeType.ALL)
|
|
50 |
@JoinColumn(name = "publisher")
|
|
51 | 51 |
private Publisher publisher; |
52 | 52 |
|
53 | 53 |
@OneToMany(mappedBy = "pk.user", cascade=CascadeType.ALL,fetch = FetchType.LAZY) |
Also available in: Unified diff