Adding more cross references

This commit is contained in:
Socrates
2020-05-29 15:22:50 +02:00
parent def64d3380
commit 80c928921e
3 changed files with 22 additions and 9 deletions

View File

@@ -20,9 +20,7 @@ import java.time.*;
)
public class Article {
@Id
@Hidden
@GeneratedValue(generator="system-uuid") // Universally Unique Identifier (1)
@Id @Hidden @GeneratedValue(generator="system-uuid") // Universally Unique Identifier (1)
@GenericGenerator(name="system-uuid", strategy = "uuid")
@Column(length=32)
private String oid;
@@ -34,27 +32,27 @@ public class Article {
@Column(length=83886080)
private byte[] photo;
@ManyToOne(fetch=FetchType.LAZY, optional=true)
@ManyToOne
@NoModify
@DescriptionsList
private Size size;
@ManyToOne(fetch=FetchType.LAZY, optional=true)
@ManyToOne
@NoModify
@DescriptionsList
private Pattern pattern;
@ManyToOne(fetch=FetchType.LAZY, optional=true)
@ManyToOne(optional=true, fetch = FetchType.EAGER)
@NoModify
@DescriptionsList
private Category category;
@ManyToOne(fetch=FetchType.LAZY, optional=true)
@ManyToOne
@NoModify
@DescriptionsList
private Brand brand;
@ManyToOne(fetch=FetchType.LAZY, optional=true)
@ManyToOne
@NoCreate
@NoModify
@DescriptionsList(order="${number} ASC")