Commit 72be8db 1 parent 0548367 commit 72be8db Copy full SHA for 72be8db
File tree 5 files changed +10
-0
lines changed
src/main/java/com/spoony/spoony_server/adapter/out/persistence
5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 9
9
import lombok .NoArgsConstructor ;
10
10
import org .springframework .data .annotation .CreatedDate ;
11
11
import org .springframework .data .annotation .LastModifiedDate ;
12
+ import org .springframework .data .jpa .domain .support .AuditingEntityListener ;
12
13
13
14
import java .time .LocalDateTime ;
14
15
15
16
@ Entity
16
17
@ Getter
17
18
@ NoArgsConstructor (access = AccessLevel .PROTECTED )
19
+ @ EntityListeners (AuditingEntityListener .class )
18
20
@ Table (name = "post" )
19
21
public class PostEntity {
20
22
@ Id
Original file line number Diff line number Diff line change 10
10
import lombok .NoArgsConstructor ;
11
11
import org .springframework .data .annotation .CreatedDate ;
12
12
import org .springframework .data .annotation .LastModifiedDate ;
13
+ import org .springframework .data .jpa .domain .support .AuditingEntityListener ;
13
14
14
15
import java .time .LocalDateTime ;
15
16
16
17
@ Entity
17
18
@ Getter
18
19
@ NoArgsConstructor (access = AccessLevel .PROTECTED )
20
+ @ EntityListeners (AuditingEntityListener .class )
19
21
@ Table (name = "report" )
20
22
public class ReportEntity {
21
23
@ Id
Original file line number Diff line number Diff line change 5
5
import lombok .*;
6
6
import org .springframework .data .annotation .CreatedDate ;
7
7
import org .springframework .data .annotation .LastModifiedDate ;
8
+ import org .springframework .data .jpa .domain .support .AuditingEntityListener ;
8
9
9
10
import java .time .LocalDateTime ;
10
11
11
12
@ Entity
12
13
@ Getter
13
14
@ Setter
14
15
@ NoArgsConstructor (access = AccessLevel .PROTECTED )
16
+ @ EntityListeners (AuditingEntityListener .class )
15
17
@ Table (name = "spoon_balance" )
16
18
public class SpoonBalanceEntity {
17
19
@ Id
Original file line number Diff line number Diff line change 8
8
import lombok .NoArgsConstructor ;
9
9
import org .springframework .data .annotation .CreatedBy ;
10
10
import org .springframework .data .annotation .CreatedDate ;
11
+ import org .springframework .data .jpa .domain .support .AuditingEntityListener ;
11
12
12
13
import java .time .LocalDateTime ;
13
14
14
15
@ Entity
15
16
@ Getter
16
17
@ NoArgsConstructor (access = AccessLevel .PROTECTED )
18
+ @ EntityListeners (AuditingEntityListener .class )
17
19
@ Table (name = "spoon_history" )
18
20
public class SpoonHistoryEntity {
19
21
@ Id
Original file line number Diff line number Diff line change 8
8
import lombok .NoArgsConstructor ;
9
9
import org .springframework .data .annotation .CreatedDate ;
10
10
import org .springframework .data .annotation .LastModifiedDate ;
11
+ import org .springframework .data .jpa .domain .support .AuditingEntityListener ;
11
12
12
13
import java .time .LocalDateTime ;
13
14
14
15
@ Entity
15
16
@ Getter
16
17
@ NoArgsConstructor (access = AccessLevel .PROTECTED )
18
+ @ EntityListeners (AuditingEntityListener .class )
17
19
@ Table (name = "user" )
18
20
public class UserEntity {
19
21
@ Id
You can’t perform that action at this time.
0 commit comments