Adding more cross references
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user