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