mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
Add project creation timestamp field.
This commit is contained in:
parent
89c6f438a8
commit
b5c4d3118c
@ -2,6 +2,7 @@ package com.pmease.gitop.core.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
@ -50,6 +51,9 @@ public class Project extends AbstractEntity implements UserBelonging {
|
||||
private GeneralOperation defaultAuthorizedOperation = GeneralOperation.NO_ACCESS;
|
||||
|
||||
private GateKeeper gateKeeper;
|
||||
|
||||
@Column(nullable=false)
|
||||
private Date createdAt = new Date();
|
||||
|
||||
@OneToMany(mappedBy="project", cascade=CascadeType.REMOVE)
|
||||
private Collection<Authorization> authorizations = new ArrayList<Authorization>();
|
||||
@ -112,6 +116,14 @@ public class Project extends AbstractEntity implements UserBelonging {
|
||||
this.gateKeeper = gateKeeper;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public User getUser() {
|
||||
return getOwner();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user