|
|
@ -1,21 +1,13 @@
|
|
|
|
package info.bukova.isspst.data;
|
|
|
|
package info.bukova.isspst.data;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import javax.persistence.Column;
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
|
|
|
|
|
import javax.persistence.Id;
|
|
|
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
@Entity
|
|
|
|
@Table(name="BUILDING")
|
|
|
|
@Table(name="BUILDING")
|
|
|
|
public class Building implements DataModel {
|
|
|
|
public class Building extends BaseData implements DataModel {
|
|
|
|
|
|
|
|
|
|
|
|
@Id
|
|
|
|
|
|
|
|
@Column(name="ID")
|
|
|
|
|
|
|
|
@GeneratedValue
|
|
|
|
|
|
|
|
private int id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Column(name="CODE", unique=true)
|
|
|
|
@Column(name="CODE", unique=true)
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
@ -26,19 +18,6 @@ public class Building implements DataModel {
|
|
|
|
@Column(name="DESCRIPTION")
|
|
|
|
@Column(name="DESCRIPTION")
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @return the id
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public int getId() {
|
|
|
|
|
|
|
|
return id;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param id the id to set
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public void setId(int id) {
|
|
|
|
|
|
|
|
this.id = id;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @return the code
|
|
|
|
* @return the code
|
|
|
@ -81,41 +60,4 @@ public class Building implements DataModel {
|
|
|
|
public void setDescription(String description) {
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void setCreated(Date created) {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Date getCreated() {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void setModified(Date modified) {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Date getModified() {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean isValid() {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void setValid(boolean valid) {
|
|
|
|
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|