Compare commits
No commits in common. "10f417e961b097a436f7987574c6d5943eb7cbe3" and "ab4322fba883fc27c9a6efd62b43a5f8c96fec19" have entirely different histories.
10f417e961
...
ab4322fba8
3 changed files with 0 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
||||||
# Database section
|
# Database section
|
||||||
DB_URL= # JDBC URL
|
|
||||||
DB_USER=
|
DB_USER=
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
package com.mixel.docusphere.entity;
|
package com.mixel.docusphere.entity;
|
||||||
|
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import org.hibernate.annotations.CreationTimestamp;
|
|
||||||
import org.hibernate.annotations.UpdateTimestamp;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@ -28,11 +25,9 @@ public class Document {
|
||||||
@JoinColumn(name = "UserID", nullable = false)
|
@JoinColumn(name = "UserID", nullable = false)
|
||||||
private User user;
|
private User user;
|
||||||
|
|
||||||
@CreationTimestamp
|
|
||||||
@Column(name = "CreatedAt", nullable = false, updatable = false)
|
@Column(name = "CreatedAt", nullable = false, updatable = false)
|
||||||
private LocalDateTime createdAt;
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
@UpdateTimestamp
|
|
||||||
@Column(name = "UpdatedAt", nullable = false)
|
@Column(name = "UpdatedAt", nullable = false)
|
||||||
private LocalDateTime updatedAt;
|
private LocalDateTime updatedAt;
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,6 @@ package com.mixel.docusphere.entity;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import jakarta.persistence.*;
|
import jakarta.persistence.*;
|
||||||
import org.hibernate.annotations.CreationTimestamp;
|
|
||||||
import org.hibernate.annotations.UpdateTimestamp;
|
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -33,11 +30,9 @@ public class User {
|
||||||
@Column(name = "PasswordSalt", nullable = false)
|
@Column(name = "PasswordSalt", nullable = false)
|
||||||
private String passwordSalt;
|
private String passwordSalt;
|
||||||
|
|
||||||
@CreationTimestamp
|
|
||||||
@Column(name = "CreatedAt", nullable = false, updatable = false)
|
@Column(name = "CreatedAt", nullable = false, updatable = false)
|
||||||
private LocalDateTime createdAt;
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
@UpdateTimestamp
|
|
||||||
@Column(name = "UpdatedAt", nullable = false)
|
@Column(name = "UpdatedAt", nullable = false)
|
||||||
private LocalDateTime updatedAt;
|
private LocalDateTime updatedAt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue