Added cross references, cleaned the persistence config, added default

tab view for Article and order.
This commit is contained in:
sockenklaus
2020-05-29 19:41:39 +02:00
parent 80c928921e
commit 33ca1ca7f9
12 changed files with 225 additions and 200 deletions

View File

@@ -18,11 +18,12 @@ import java.time.*;
"#buyDate, sellDate];" +
"remarks"
)
@Tab(properties="name, photo, category.description, brand.description, pattern.description, size.description, condition.description, remarks", defaultOrder="${name} asc")
public class Article {
@Id @Hidden @GeneratedValue(generator="system-uuid") // Universally Unique Identifier (1)
@GenericGenerator(name="system-uuid", strategy = "uuid")
@Column(length=32)
@Id @Hidden @GeneratedValue(generator="system-uuid2") // Universally Unique Identifier (1)
@GenericGenerator(name="system-uuid2", strategy = "uuid2")
@Column(length=36)
private String oid;
@Column(length=32)
@@ -42,7 +43,7 @@ public class Article {
@DescriptionsList
private Pattern pattern;
@ManyToOne(optional=true, fetch = FetchType.EAGER)
@ManyToOne
@NoModify
@DescriptionsList
private Category category;