Skip to content

Commit

Permalink
fix: delete non-working annotations in photo entity
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkim20713 committed Aug 31, 2024
1 parent ed69bfd commit 42131d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.r2dbc.config.EnableR2dbcAuditing;

@EnableR2dbcAuditing
@SpringBootApplication
public class PhotoServiceApplication {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ public class PhotoEntity implements Persistable<String> {
@Column("display_index")
private Integer displayIndex;

@CreatedDate
@Column("created_at")
private LocalDateTime createdAt;

@LastModifiedDate
@Column("updated_at")
private LocalDateTime updatedAt;

Expand Down Expand Up @@ -92,6 +90,8 @@ public static PhotoEntity newPhoto(String photoId, String photoUrl, BrandType br
photo.ownerMemberId = ownerMemberId;
photo.displayIndex = 0;
photo.isNew = true;
photo.createdAt = LocalDateTime.now();
photo.updatedAt = LocalDateTime.now();
return photo;
}
}

0 comments on commit 42131d9

Please sign in to comment.