38 lines
734 B
Java
38 lines
734 B
Java
package com.yourcompany.babydatenbank.model;
|
|
|
|
import javax.persistence.*;
|
|
import org.openxava.annotations.*;
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
@Entity
|
|
public class Size {
|
|
|
|
@Id
|
|
@Hidden
|
|
@GeneratedValue(generator="system-uuid2") // Universally Unique Identifier (1)
|
|
@GenericGenerator(name="system-uuid2", strategy = "uuid2")
|
|
@Column(length=36)
|
|
private String oid;
|
|
|
|
@Column(length=20)
|
|
private String description;
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
public String getOid() {
|
|
return oid;
|
|
}
|
|
|
|
public void setOid(String oid) {
|
|
this.oid = oid;
|
|
}
|
|
|
|
|
|
}
|