@ -1,10 +1,11 @@
package info.bukova.isspst.data ;
import info.bukova.isspst.storage.EntityWithAttachment ;
import org.hibernate.annotations.LazyCollection ;
import org.hibernate.annotations.LazyCollectionOption ;
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 ;
import javax.persistence.CascadeType ;
import javax.persistence.Column ;
@ -15,10 +16,14 @@ import javax.persistence.ManyToOne;
import javax.persistence.OneToMany ;
import javax.persistence.OneToOne ;
import javax.persistence.Table ;
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 ;
@Entity
@Table ( name = "TRIP_BILL" )
@ -32,6 +37,11 @@ public class TripBill extends BaseData implements EntityWithAttachment {
private Date resultMessageDate ;
@Column ( name = "SIGN_DATE" )
private Date signDate ;
@Column ( name = "RESULT_MESSAGE" )
@Field ( index = Index . YES , analyze = Analyze . YES )
private String resultMessage ;
@Column ( name = "FREE_MEALS" )
private boolean freeMeals ;
@Column ( name = "FREE_HOUSING" )
@ -85,6 +95,16 @@ public class TripBill extends BaseData implements EntityWithAttachment {
this . signDate = signDate ;
}
public String getResultMessage ( )
{
return resultMessage ;
}
public void setResultMessage ( String resultMessage )
{
this . resultMessage = resultMessage ;
}
public boolean isFreeMeals ( ) {
return freeMeals ;
}