-
Notifications
You must be signed in to change notification settings - Fork 1
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
12 changed files
with
131 additions
and
36 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
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
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
36 changes: 36 additions & 0 deletions
36
...n/java/megabrain/gyeongnamgyeongmae/domain/auctionItem/domain/entity/AuctionItemLike.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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.entity; | ||
|
||
import lombok.*; | ||
import megabrain.gyeongnamgyeongmae.domain.member.domain.entity.Member; | ||
import megabrain.gyeongnamgyeongmae.global.commons.BaseTimeEntity; | ||
|
||
import javax.persistence.*; | ||
|
||
@Getter | ||
@Setter | ||
@Entity | ||
@Table(name = "AuctionItemLike") | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class AuctionItemLike extends BaseTimeEntity { | ||
|
||
@EmbeddedId | ||
private AuctionItemLikePK id; | ||
|
||
@MapsId("auctionItemId") | ||
@ManyToOne | ||
@JoinColumn(name = "auctionItemId") | ||
private AuctionItem auctionItem; | ||
|
||
@MapsId("memberId") | ||
@ManyToOne | ||
@JoinColumn(name = "memberId") | ||
private Member member; | ||
|
||
@Builder | ||
public AuctionItemLike(AuctionItemLikePK id, AuctionItem auctionItem, Member member) { | ||
this.id = id; | ||
this.auctionItem = auctionItem; | ||
this.member = member; | ||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
...java/megabrain/gyeongnamgyeongmae/domain/auctionItem/domain/entity/AuctionItemLikePK.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.entity; | ||
|
||
|
||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.persistence.Embeddable; | ||
import java.io.Serializable; | ||
|
||
@Data | ||
@Embeddable | ||
@NoArgsConstructor | ||
public class AuctionItemLikePK implements Serializable { | ||
private Long auctionItemId; | ||
private Long memberId; | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...in/gyeongnamgyeongmae/domain/auctionItem/domain/repostiory/AuctionItemLikeRepository.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.repostiory; | ||
|
||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.entity.AuctionItemLike; | ||
import megabrain.gyeongnamgyeongmae.domain.auctionItem.domain.entity.AuctionItemLikePK; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
|
||
public interface AuctionItemLikeRepository extends JpaRepository<AuctionItemLike, AuctionItemLikePK> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...main/java/megabrain/gyeongnamgyeongmae/domain/auctionItem/dto/AuctionItemLikeRequest.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package megabrain.gyeongnamgyeongmae.domain.auctionItem.dto; | ||
|
||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
@Data | ||
public class AuctionItemLikeRequest { | ||
|
||
@NotNull | ||
private Long memberId; | ||
|
||
} |
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
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
16 changes: 0 additions & 16 deletions
16
...brain/gyeongnamgyeongmae/domain/auctionItem/service/Search/IAuctionItemSearchService.java
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -6,5 +6,4 @@ public interface MemberService { | |
|
||
void createMember(Member member); | ||
|
||
Member findMemberById(Long Id); | ||
} |