|
|
|
@ -2,11 +2,13 @@ package info.bukova.isspst.data;
|
|
|
|
|
|
|
|
|
|
import info.bukova.isspst.Constants;
|
|
|
|
|
import info.bukova.isspst.storage.EntityWithAttachment;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
|
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
|
import org.hibernate.search.annotations.Analyze;
|
|
|
|
|
import org.hibernate.search.annotations.Field;
|
|
|
|
|
import org.hibernate.search.annotations.Index;
|
|
|
|
|
import org.hibernate.search.annotations.Indexed;
|
|
|
|
|
import org.hibernate.search.annotations.IndexedEmbedded;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.CascadeType;
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
@ -16,14 +18,10 @@ import javax.persistence.JoinColumn;
|
|
|
|
|
import javax.persistence.OneToMany;
|
|
|
|
|
import javax.persistence.OneToOne;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
|
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
|
import org.hibernate.search.annotations.Analyze;
|
|
|
|
|
import org.hibernate.search.annotations.Field;
|
|
|
|
|
import org.hibernate.search.annotations.Index;
|
|
|
|
|
import org.hibernate.search.annotations.Indexed;
|
|
|
|
|
import org.hibernate.search.annotations.IndexedEmbedded;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name = "TRIP_BILL")
|
|
|
|
@ -66,7 +64,7 @@ public class TripBill extends BaseData implements EntityWithAttachment {
|
|
|
|
|
@JoinColumn(name = "APPROVAL_ID")
|
|
|
|
|
private TripBillApproval approval;
|
|
|
|
|
@Column(name = "SAVED")
|
|
|
|
|
private Boolean saved;
|
|
|
|
|
private Boolean saved; // Nastaveno na true, pokud uživatel udělá změnu- nepřenáší se pak částky od žadatele
|
|
|
|
|
|
|
|
|
|
public TripBill() {
|
|
|
|
|
billItems = new ArrayList<TripBillItem>();
|
|
|
|
|