-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
src/main/java/com/acon/server/member/domain/entity/RecentGuidedSpot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
package com.acon.server.member.domain.entity; | ||
|
||
import java.time.LocalDateTime; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@Setter | ||
public class RecentGuidedSpot { | ||
|
||
private final Long id; | ||
private final Long memberId; | ||
private final Long spotId; | ||
private LocalDateTime createdAt; | ||
private LocalDateTime updatedAt; | ||
|
||
@Builder | ||
public RecentGuidedSpot( | ||
Long id, | ||
Long memberId, | ||
Long spotId | ||
Long spotId, | ||
LocalDateTime createdAt, | ||
LocalDateTime updatedAt | ||
) { | ||
this.id = id; | ||
this.memberId = memberId; | ||
this.spotId = spotId; | ||
this.createdAt = createdAt; | ||
this.updatedAt = updatedAt; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/main/java/com/acon/server/member/infra/repository/RecentGuidedSpotRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package com.acon.server.member.infra.repository; | ||
|
||
import com.acon.server.member.infra.entity.RecentGuidedSpotEntity; | ||
import java.util.Optional; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface RecentGuidedSpotRepository extends JpaRepository<RecentGuidedSpotEntity, Long> { | ||
|
||
Optional<RecentGuidedSpotEntity> findByMemberIdAndSpotId(Long memberId, Long spotId); | ||
|
||
} |