Skip to content

Commit

Permalink
fix : delete create_date in team Member Announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
oznchex committed Jul 25, 2024
1 parent ccd193c commit 050b8e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLRestriction;

import java.time.LocalDateTime;

import static jakarta.persistence.FetchType.LAZY;
import static jakarta.persistence.GenerationType.IDENTITY;
import static lombok.AccessLevel.PROTECTED;
Expand Down Expand Up @@ -40,14 +38,6 @@ public class TeamMemberAnnouncement extends BaseEntity {
@Column(name = "application_process")
private String applicationProcess;

@Column(updatable = false)
private LocalDateTime createdDate;

@PrePersist
protected void onCreate() {
this.createdDate = LocalDateTime.now();
}

public static TeamMemberAnnouncement of(
final TeamProfile teamProfile,
final String mainBusiness,
Expand All @@ -57,8 +47,7 @@ public static TeamMemberAnnouncement of(
null,
teamProfile,
mainBusiness,
applicationProcess,
null
applicationProcess
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public interface TeamMemberAnnouncementRepository extends JpaRepository<TeamMemb
WHERE am2.teamProfile.id = tp.id AND amt2.activityTagName IN :activityTagName) = :activityTagCount)
AND (tmp.isTeamActivate = true)
ORDER BY tma.createdDate DESC
ORDER BY tma.createdAt DESC
""")
Page<TeamMemberAnnouncement> findAllByOrderByCreatedDateDesc(
@Param("teamBuildingFieldName") final List<String> teamBuildingFieldName,
Expand Down

0 comments on commit 050b8e0

Please sign in to comment.