forked from CSID-DGU/2024-2-OSSProj-Running-Machines-04
-
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.
Merge pull request CSID-DGU#108 from CSID-DGU/backend/feature/crew
BE: [feat] 크루 프로필 이미지 추가 CSID-DGU#83
- Loading branch information
Showing
6 changed files
with
62 additions
and
1 deletion.
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
26 changes: 26 additions & 0 deletions
26
...backend/src/main/java/RunningMachines/R2R/domain/crew/common/entity/CrewProfileImage.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,26 @@ | ||
package RunningMachines.R2R.domain.crew.common.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
|
||
@Entity | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
public class CrewProfileImage { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(nullable = false) | ||
private Long id; | ||
|
||
@OneToOne | ||
@JoinColumn(name = "crew_id", nullable = false) | ||
private Crew crew; | ||
|
||
private String imageUrl; | ||
|
||
public void setCrew(Crew crew) { | ||
this.crew = crew; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...in/java/RunningMachines/R2R/domain/crew/common/repository/CrewProfileImageRepository.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,7 @@ | ||
package RunningMachines.R2R.domain.crew.common.repository; | ||
|
||
import RunningMachines.R2R.domain.crew.common.entity.CrewProfileImage; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CrewProfileImageRepository extends JpaRepository<CrewProfileImage, Long> { | ||
} |
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