0,0 → 1,101 |
package ak.itru.core.model; |
|
import java.math.BigDecimal; |
import ak.itru.util.ModelException; |
import ak.itru.util.ModelSecurityException; |
|
/** |
* |
* @hibernate.class table="apartments" |
*/ |
public class Apartment |
extends GeneralModelObject |
{ |
private String name; |
private String address; |
private BigDecimal price; |
private String url; |
private String comment; |
|
protected Apartment() |
{ |
} |
|
/** |
* |
* @hibernate.property |
*/ |
public String getName() |
{ |
return name; |
} |
|
public void setName(String name) |
{ |
this.name = name; |
} |
|
/** |
* |
* @hibernate.property |
*/ |
public String getAddress() |
{ |
return address; |
} |
|
public void setAddress(String address) |
{ |
this.address = address; |
} |
|
/** |
* |
* @hibernate.property |
*/ |
public BigDecimal getPrice() |
{ |
return price; |
} |
|
public void setPrice(BigDecimal price) |
{ |
this.price = price; |
} |
|
/** |
* |
* @hibernate.property |
*/ |
public String getUrl() |
{ |
return url; |
} |
|
public void setUrl(String url) |
{ |
this.url = url; |
} |
|
/** |
* |
* @hibernate.property |
*/ |
public String getComment() |
{ |
return comment; |
} |
|
public void setComment(String comment) |
{ |
this.comment = comment; |
} |
|
public boolean equals(Object o) |
{ |
if(o == null || !(o instanceof Apartment)) return false; |
|
Apartment a = (Apartment)o; |
return (getId() != null) && (a.getId() != null) && (getId().equals(a.getId())); |
} |
} |