You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.1 KiB
Java
68 lines
1.1 KiB
Java
package info.bukova.isspst.data;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Table;
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
|
|
@Entity
|
|
@Table(name = "MUNIT")
|
|
public class MUnit extends BaseData implements DataModel {
|
|
|
|
@Column(name = "CODE", unique = true)
|
|
private String code;
|
|
|
|
@Column(name = "NAME")
|
|
private String name;
|
|
|
|
@Column(name = "DESCRIPTION")
|
|
private String description;
|
|
|
|
/**
|
|
* @return the code
|
|
*/
|
|
@NotBlank(message = "{MUnitsFormCodeConstr}")
|
|
public String getCode() {
|
|
return code;
|
|
}
|
|
|
|
/**
|
|
* @param code
|
|
* the code to set
|
|
*/
|
|
public void setCode(String code) {
|
|
this.code = code;
|
|
}
|
|
|
|
/**
|
|
* @return the name
|
|
*/
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
/**
|
|
* @param name
|
|
* the name to set
|
|
*/
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
/**
|
|
* @return the description
|
|
*/
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
/**
|
|
* @param description
|
|
* the description to set
|
|
*/
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
}
|