Additional persistence annotations
parent
e86bcdc2dd
commit
c0e167c42c
|
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
package org.scientificcms.publications;
|
||||
|
||||
import org.hibernate.envers.Audited;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
|
@ -21,6 +23,7 @@ import static org.scientificcms.publications.SciPublicationsConstants.*;
|
|||
*/
|
||||
@Entity
|
||||
@Table(name = "IN_PROCEEDINGS", schema = DB_SCHEMA)
|
||||
@Audited
|
||||
public class InProceedings extends Publication {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public class Proceedings extends PublicationWithPublisher {
|
|||
@JoinColumn(name = "ORGANIZER_ID")
|
||||
private Organization organizer;
|
||||
|
||||
@OneToMany(fetch = FetchType.LAZY)
|
||||
@OneToMany(fetch = FetchType.LAZY, mappedBy = "proceedings")
|
||||
private List<InProceedings> papers;
|
||||
|
||||
public Proceedings() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue