/*
* Project montagnesdor
* File name Restaurant.java
* Created on 4 sept. 2004
* @author Mathieu MA sous conrad
* @version 1.0
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package fr.mch.mdo.restaurant.dto.beans;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import fr.mch.mdo.restaurant.beans.MdoDtoBean;
/**
* This class is a DTO for the restaurants informations.
*
* @author Mathieu
*/
public class RestaurantDto extends MdoDtoBean
{
/**
* Default Serial Version UID.
*/
private static final long serialVersionUID = 1L;
/**
* This is the restaurant creation date in the application.
*/
private Date registrationDate;
/**
* This is the restaurant reference in the application.
*/
private String reference;
/**
* This is the restaurant name.
*/
private String name;
/**
* This is the restaurant address road.
*/
private String addressRoad;
/**
* This is the restaurant address zip code.
*/
private String addressZip;
/**
* This is the restaurant address city.
*/
private String addressCity;
/**
* This is the restaurant phone number.
*/
private String phone;
/**
* This is the restaurant V.A.T(Value Added Taxes) reference.
*/
private String vatRef;
/**
* This is the restaurant visa reference.
*/
private String visaRef;
/**
* This is the restaurant triple DES key.
* Used to create bill references.
*/
private String tripleDESKey;
/**
* This is used to know if we have to apply the V.A.T(Value Added Taxes) when it is a takeaway table.
* The default value is true.
* Permet de savoir comment stocker les montants dans la table t_vat_table
*/
private boolean vatByTakeaway = false;
/**
* This is the specific round to apply on all amounts calculations.
* It is a foreign that refers to the t_enum table for type SPECIFIC_ROUND_CALCULATION.
* <!--1 = HALF ROUND-->
* <!--2 = TENTH ROUND-->
*/
private MdoTableAsEnumDto specificRound;
/**
* This is the default table type.
* It is a foreign that refers to the t_table_type table.
* It is used to specify the dinner table type which can be EAT_IN, TAKEAWAY, ....
*/
private TableTypeDto defaultTableType;
/**
* This is a foreign key that refers to t_value_added_tax.
* It is used to specify the default VAT custom order line when the former order line is not defined by a product in restaurant catalog.'
*/
private ValueAddedTaxDto vat;
/**
* List of vats for this restaurant
*/
private Set<RestaurantValueAddedTaxDto> vats = new HashSet<RestaurantValueAddedTaxDto>();
/**
* List of VAT table types for take-away table(for instance).
*/
private Set<RestaurantVatTableTypeDto> vatTableTypes = new HashSet<RestaurantVatTableTypeDto>();
/**
* List of prefix table names for this restaurant
*/
private Set<RestaurantPrefixTableDto> prefixTableNames = new HashSet<RestaurantPrefixTableDto>();
/**
* List of reduction tables for this restaurant
*/
private Set<RestaurantReductionTableDto> reductionTables = new HashSet<RestaurantReductionTableDto>();
/**
* Array of prefix take-away names
*/
private String[] prefixTakeawayNames;
/**
* Map of ProductSpecialCode with key == short code and value == ProductSpecialCodeDto
*/
private Set<ProductSpecialCodeDto> productSpecialCodes = new HashSet<ProductSpecialCodeDto>();
/**
* @return the registrationDate
*/
public Date getRegistrationDate() {
return registrationDate;
}
/**
* @param registrationDate the registrationDate to set
*/
public void setRegistrationDate(Date registrationDate) {
this.registrationDate = registrationDate;
}
/**
* @return the reference
*/
public String getReference() {
return reference;
}
/**
* @param reference the reference to set
*/
public void setReference(String reference) {
this.reference = reference;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the addressRoad
*/
public String getAddressRoad() {
return addressRoad;
}
/**
* @param addressRoad the addressRoad to set
*/
public void setAddressRoad(String addressRoad) {
this.addressRoad = addressRoad;
}
/**
* @return the addressZip
*/
public String getAddressZip() {
return addressZip;
}
/**
* @param addressZip the addressZip to set
*/
public void setAddressZip(String addressZip) {
this.addressZip = addressZip;
}
/**
* @return the addressCity
*/
public String getAddressCity() {
return addressCity;
}
/**
* @param addressCity the addressCity to set
*/
public void setAddressCity(String addressCity) {
this.addressCity = addressCity;
}
/**
* @return the phone
*/
public String getPhone() {
return phone;
}
/**
* @param phone the phone to set
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
* @return the vatRef
*/
public String getVatRef() {
return vatRef;
}
/**
* @param vatRef the vatRef to set
*/
public void setVatRef(String vatRef) {
this.vatRef = vatRef;
}
/**
* @return the visaRef
*/
public String getVisaRef() {
return visaRef;
}
/**
* @param visaRef the visaRef to set
*/
public void setVisaRef(String visaRef) {
this.visaRef = visaRef;
}
/**
* @return the tripleDESKey
*/
public String getTripleDESKey() {
return tripleDESKey;
}
/**
* @param tripleDESKey the tripleDESKey to set
*/
public void setTripleDESKey(String tripleDESKey) {
this.tripleDESKey = tripleDESKey;
}
/**
* @return the vatByTakeaway
*/
public boolean isVatByTakeaway() {
return vatByTakeaway;
}
/**
* @param vatByTakeaway the vatByTakeaway to set
*/
public void setVatByTakeaway(boolean vatByTakeaway) {
this.vatByTakeaway = vatByTakeaway;
}
/**
* @return the specificRound
*/
public MdoTableAsEnumDto getSpecificRound() {
return specificRound;
}
/**
* @param specificRound the specificRound to set
*/
public void setSpecificRound(MdoTableAsEnumDto specificRound) {
this.specificRound = specificRound;
}
/**
* @param defaultTableType the defaultTableType to set
*/
public void setDefaultTableType(TableTypeDto defaultTableType) {
this.defaultTableType = defaultTableType;
}
/**
* @return the defaultTableType
*/
public TableTypeDto getDefaultTableType() {
return defaultTableType;
}
/**
* @return the vat
*/
public ValueAddedTaxDto getVat() {
return vat;
}
/**
* @param vat the vat to set
*/
public void setVat(ValueAddedTaxDto vat) {
this.vat = vat;
}
/**
* @return the vats
*/
public Set<RestaurantValueAddedTaxDto> getVats() {
return vats;
}
/**
* @param vats the vats to set
*/
public void setVats(Set<RestaurantValueAddedTaxDto> vats) {
this.vats = vats;
}
/**
* @return the vatTableTypes
*/
public Set<RestaurantVatTableTypeDto> getVatTableTypes() {
return vatTableTypes;
}
/**
* @param vatTableTypes the vatTableTypes to set
*/
public void setVatTableTypes(Set<RestaurantVatTableTypeDto> vatTableTypes) {
this.vatTableTypes = vatTableTypes;
}
/**
* @param prefixTableNames the prefixTableNames to set
*/
public void setPrefixTableNames(Set<RestaurantPrefixTableDto> prefixTableNames) {
this.prefixTableNames = prefixTableNames;
}
/**
* @return the prefixTableNames
*/
public Set<RestaurantPrefixTableDto> getPrefixTableNames() {
return prefixTableNames;
}
/**
* @return the reductionTables
*/
public Set<RestaurantReductionTableDto> getReductionTables() {
return reductionTables;
}
/**
* @param reductionTables the reductionTables to set
*/
public void setReductionTables(Set<RestaurantReductionTableDto> reductionTables) {
this.reductionTables = reductionTables;
}
/**
* @param prefixTakeawayNames the prefixTakeawayNames to set
*/
public void setPrefixTakeawayNames(String[] prefixTakeawayNames) {
this.prefixTakeawayNames = prefixTakeawayNames;
}
/**
* @return the prefixTakeawayNames
*/
public String[] getPrefixTakeawayNames() {
return prefixTakeawayNames;
}
/**
* @param productSpecialCodes the productSpecialCodes to set
*/
public void setProductSpecialCodes(Set<ProductSpecialCodeDto> productSpecialCodes) {
this.productSpecialCodes = productSpecialCodes;
}
/**
* @return the productSpecialCodes
*/
public Set<ProductSpecialCodeDto> getProductSpecialCodes() {
return productSpecialCodes;
}
@Override
public String toString() {
return "RestaurantDto [registrationDate=" + registrationDate
+ ", reference=" + reference + ", name=" + name
+ ", addressRoad=" + addressRoad + ", addressZip=" + addressZip
+ ", addressCity=" + addressCity + ", phone=" + phone
+ ", vatRef=" + vatRef + ", visaRef=" + visaRef
+ ", tripleDESKey=" + tripleDESKey + ", vatByTakeaway=" + vatByTakeaway
+ ", specificRound=" + specificRound + ", defaultTableType=" + defaultTableType
+ ", vat=" + vat + ", id=" + id + "]";
}
}