-
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
12 changed files
with
308 additions
and
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.goolbitg.api.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
|
||
import lombok.Getter; | ||
|
||
/** | ||
* SpendingType | ||
*/ | ||
@Entity | ||
@Table(name = "spending_types") | ||
@Getter | ||
public class SpendingType { | ||
|
||
@Id | ||
@Column(name = "id") | ||
private String id; | ||
|
||
@Column(name = "title") | ||
private String title; | ||
|
||
@Column(name = "image_url") | ||
private String imageUrl; | ||
|
||
@Column(name = "cutline") | ||
private Integer cutline; | ||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/goolbitg/api/repository/SpendingTypeRepository.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,12 @@ | ||
package com.goolbitg.api.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.goolbitg.api.entity.SpendingType; | ||
|
||
/** | ||
* SpendingTypeRepository | ||
*/ | ||
public interface SpendingTypeRepository extends JpaRepository<SpendingType, String> { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
src/main/java/com/goolbitg/api/repository/UserSurveyRepository.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,12 +1,13 @@ | ||
package com.goolbitg.api.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.repository.CrudRepository; | ||
|
||
import com.goolbitg.api.entity.UserSurvey; | ||
|
||
/** | ||
* UserSurveyRepository | ||
*/ | ||
public interface UserSurveyRepository extends CrudRepository<UserSurvey, String> { | ||
public interface UserSurveyRepository extends JpaRepository<UserSurvey, String> { | ||
|
||
} |
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.