diff --git a/hsarback/src/de/hsadmin/mods/pac/BasePac.java b/hsarback/src/de/hsadmin/mods/pac/BasePac.java index 6347edc..a58a1e4 100644 --- a/hsarback/src/de/hsadmin/mods/pac/BasePac.java +++ b/hsarback/src/de/hsadmin/mods/pac/BasePac.java @@ -1,7 +1,6 @@ package de.hsadmin.mods.pac; import static javax.persistence.CascadeType.ALL; -import static javax.persistence.FetchType.LAZY; import static javax.persistence.GenerationType.SEQUENCE; import java.io.Serializable; @@ -10,6 +9,7 @@ import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; @@ -52,10 +52,10 @@ public class BasePac implements Serializable { @Column(name = "valid", columnDefinition = "boolean") private boolean valid; - @OneToMany(fetch = LAZY, cascade = ALL) + @OneToMany(fetch = FetchType.LAZY, cascade = ALL) private Set components; - @OneToMany(fetch = LAZY, cascade = ALL) + @OneToMany(fetch = FetchType.LAZY, cascade = ALL) @JoinTable(name = "packet_component", joinColumns = @JoinColumn(name = "packet_id"), inverseJoinColumns = @JoinColumn(name = "basepacket_id")) private Set pacs; diff --git a/hsarback/src/de/hsadmin/mods/pac/Pac.java b/hsarback/src/de/hsadmin/mods/pac/Pac.java index 8ce821d..7472dde 100644 --- a/hsarback/src/de/hsadmin/mods/pac/Pac.java +++ b/hsarback/src/de/hsadmin/mods/pac/Pac.java @@ -26,7 +26,6 @@ import javax.persistence.Transient; import de.hsadmin.core.model.AbstractEntity; import de.hsadmin.core.model.EntityInfo; -import de.hsadmin.core.model.ModuleImpl; import de.hsadmin.mods.cust.Customer; import de.hsadmin.mods.user.UnixUser;