|
|
@ -1,5 +1,6 @@
|
|
|
|
package info.bukova.isspst.data;
|
|
|
|
package info.bukova.isspst.data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.hibernate.annotations.Cascade;
|
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
|
|
|
|
|
|
|
@ -21,6 +22,7 @@ public class Invoicing extends BaseData implements Cloneable
|
|
|
|
|
|
|
|
|
|
|
|
@OneToOne(fetch = FetchType.EAGER)
|
|
|
|
@OneToOne(fetch = FetchType.EAGER)
|
|
|
|
@JoinColumn(name = "REQUIREMENT_ID")
|
|
|
|
@JoinColumn(name = "REQUIREMENT_ID")
|
|
|
|
|
|
|
|
@Cascade(org.hibernate.annotations.CascadeType.SAVE_UPDATE)
|
|
|
|
private Requirement requirement;
|
|
|
|
private Requirement requirement;
|
|
|
|
|
|
|
|
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
|
|
|
|