Added cross references, cleaned the persistence config, added default
tab view for Article and order.
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
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-uuid") // Universally Unique Identifier (1)
|
||||
@GenericGenerator(name="system-uuid", strategy = "uuid")
|
||||
@Column(length=32)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user