/**
* TNTConcept Easy Enterprise Management by Autentia Real Bussiness Solution S.L.
* Copyright (C) 2007 Autentia Real Bussiness Solution S.L.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.autentia.tnt.businessobject;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.autentia.tnt.dao.ITransferObject;
/**
* Transfer object to store Inventarys
* @author stajanov code generator
*/
public class Inventary implements Serializable, ITransferObject
{
/** Serial version field */
private static final long serialVersionUID = -1L;
/* inventary - generated by stajanov (do not edit/delete) */
// Fields
private Integer id;
private Date buyDate;
private boolean renting;
private BigDecimal cost;
private boolean amortizable;
private String serialNumber;
private String provider;
private String trademark;
private String model;
private String speed;
private String storage;
private String ram;
private String location;
private String description;
private InventaryType type;
private Integer ownerId;
private Integer departmentId;
private Date insertDate;
private Date updateDate;
private User assignedTo;
// Setters and getters
public Integer getId() {
return id;
}
private void setId( Integer id ) {
this.id = id;
}
public Date getBuyDate() {
return buyDate;
}
public void setBuyDate( Date buyDate ) {
this.buyDate = buyDate;
}
public boolean isRenting() {
return renting;
}
public void setRenting( boolean renting ) {
this.renting = renting;
}
public BigDecimal getCost() {
return cost;
}
public void setCost( BigDecimal cost ) {
this.cost = cost;
}
public boolean isAmortizable() {
return amortizable;
}
public void setAmortizable( boolean amortizable ) {
this.amortizable = amortizable;
}
public String getSerialNumber() {
return serialNumber;
}
public void setSerialNumber( String serialNumber ) {
this.serialNumber = serialNumber;
}
public String getProvider() {
return provider;
}
public void setProvider( String provider ) {
this.provider = provider;
}
public String getTrademark() {
return trademark;
}
public void setTrademark( String trademark ) {
this.trademark = trademark;
}
public String getModel() {
return model;
}
public void setModel( String model ) {
this.model = model;
}
public String getSpeed() {
return speed;
}
public void setSpeed( String speed ) {
this.speed = speed;
}
public String getStorage() {
return storage;
}
public void setStorage( String storage ) {
this.storage = storage;
}
public String getRam() {
return ram;
}
public void setRam( String ram ) {
this.ram = ram;
}
public String getLocation() {
return location;
}
public void setLocation( String location ) {
this.location = location;
}
public String getDescription() {
return description;
}
public void setDescription( String description ) {
this.description = description;
}
public InventaryType getType() {
return type;
}
public void setType( InventaryType type ) {
this.type = type;
}
public Integer getOwnerId() {
return ownerId;
}
public void setOwnerId( Integer ownerId ) {
this.ownerId = ownerId;
}
public Integer getDepartmentId() {
return departmentId;
}
public void setDepartmentId( Integer departmentId ) {
this.departmentId = departmentId;
}
public Date getInsertDate() {
return insertDate;
}
public void setInsertDate( Date insertDate ) {
this.insertDate = insertDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate( Date updateDate ) {
this.updateDate = updateDate;
}
public User getAssignedTo() {
return assignedTo;
}
public void setAssignedTo( User assignedTo ) {
this.assignedTo = assignedTo;
}
@Override
public boolean equals( Object that )
{
try {
if (that == null)
return false;
else
return this.getId().equals( ((Inventary)that).getId() );
} catch (Exception e) {
return false;
}
}
@Override
public int hashCode() {
if(this.getId()==null)
return super.hashCode();
else
return this.getId().intValue();
}
public List<Integer> getOwnersId() {
// TODO Auto-generated method stub
return null;
}
/* inventary - generated by stajanov (do not edit/delete) */
}