-
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.
- Entity, Repository 추가
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Domain/src/main/java/picasso/server/domain/domains/dto/PictureDTO.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,19 @@ | ||
package picasso.server.domain.domains.dto; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter @Setter | ||
public class PictureDTO { | ||
private Long picture_id; //그림 ID | ||
private String pictureName; //그림 이름 | ||
private String painterName; //화가 이름 | ||
private String details; //그림 설명 | ||
private int startingPrice; //시작가격 | ||
private int incrementAmount; //최소입찰단위 | ||
private String size; //그림 사이즈 | ||
private LocalDateTime dateTime; | ||
private String imgUrl; //그림 url | ||
} |
33 changes: 33 additions & 0 deletions
33
Domain/src/main/java/picasso/server/domain/domains/items/Picture.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,33 @@ | ||
package picasso.server.domain.domains.items; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Entity | ||
@Getter @Setter | ||
public class Picture { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long picture_id; | ||
|
||
private String imgUrl; //그림 url | ||
|
||
private String pictureName; //그림 이름 | ||
|
||
private String painterName; //화가 이름 | ||
|
||
@Column(nullable = false) | ||
private String details; //그림 설명 | ||
|
||
private int startingPrice; //시작 가격 | ||
|
||
private int incrementAmount; //최소 입찰 단위 | ||
|
||
private String size; //그림 사이즈 | ||
private LocalDateTime dateTime; | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
Domain/src/main/java/picasso/server/domain/domains/repository/PictureRepository.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 picasso.server.domain.domains.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
import picasso.server.domain.domains.items.Picture; | ||
|
||
@Repository | ||
public interface PictureRepository extends JpaRepository<Picture, Long>{ | ||
|
||
} |