ViSnezh
This commit is contained in:
1 parent
a90452424f
commit
e0c11fedc7
1 file changed
+2
-2
@@ -40,13 +40,13 @@ public class Project {
|
|||||||
private String technology;
|
private String technology;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "owner_id")
|
@JoinColumn(name = "owner_id", updatable = false)
|
||||||
private User owner;
|
private User owner;
|
||||||
|
|
||||||
@OneToMany(mappedBy = "project", cascade = {CascadeType.ALL})
|
@OneToMany(mappedBy = "project", cascade = {CascadeType.ALL})
|
||||||
private List<Participant> participants;
|
private List<Participant> participants;
|
||||||
|
|
||||||
@Column(name = "created_date")
|
@Column(name = "created_date", updatable = false)
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private LocalDateTime createdDate;
|
private LocalDateTime createdDate;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user