This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
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.
Merge pull request #112 from FinFellows/develop
[FIX]: 배열 쿼리로 수정 (#111)
- Loading branch information
Showing
18 changed files
with
284 additions
and
87 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
40 changes: 40 additions & 0 deletions
40
src/main/java/com/finfellows/domain/product/domain/Bank.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,40 @@ | ||
package com.finfellows.domain.product.domain; | ||
|
||
import com.finfellows.domain.common.BaseEntity; | ||
import jakarta.persistence.*; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Table(name = "Bank") | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@Getter | ||
public class Bank extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "id", updatable = false) | ||
private Long id; | ||
|
||
private String bankName; | ||
|
||
private String bankCode; | ||
|
||
private String bankLogoUrl; | ||
|
||
private String bankUrl; | ||
|
||
private String bankTel; | ||
|
||
@Builder | ||
public Bank(String bankName, String bankCode, String bankLogoUrl, String bankUrl, String bankTel) { | ||
this.bankName = bankName; | ||
this.bankCode = bankCode; | ||
this.bankLogoUrl = bankLogoUrl; | ||
this.bankUrl = bankUrl; | ||
this.bankTel = bankTel; | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/finfellows/domain/product/domain/repository/BankRepository.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 com.finfellows.domain.product.domain.repository; | ||
|
||
import com.finfellows.domain.product.domain.Bank; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface BankRepository extends JpaRepository<Bank, 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
Oops, something went wrong.