-
Notifications
You must be signed in to change notification settings - Fork 3
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
9 changed files
with
85 additions
and
49 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
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
42 changes: 21 additions & 21 deletions
42
.../java/org/alongtheblue/alongtheblue_server/global/data/tourcommunity/TourPostHashTag.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,21 +1,21 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.tourcommunity; | ||
|
||
import com.fasterxml.jackson.annotation.JsonBackReference; | ||
import jakarta.persistence.*; | ||
import lombok.Data; | ||
|
||
@Entity | ||
@Data | ||
public class TourPostHashTag { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "userTourCourse") | ||
@JsonBackReference | ||
private UserTourCourse tourCourseForHashTag; | ||
|
||
private String content; | ||
|
||
} | ||
//package org.alongtheblue.alongtheblue_server.global.data.tourcommunity; | ||
// | ||
//import com.fasterxml.jackson.annotation.JsonBackReference; | ||
//import jakarta.persistence.*; | ||
//import lombok.Data; | ||
// | ||
//@Entity | ||
//@Data | ||
//public class TourPostHashTag { | ||
// @Id | ||
// @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
// private Long id; | ||
// | ||
// @ManyToOne | ||
// @JoinColumn(name = "userTourCourse") | ||
// @JsonBackReference | ||
// private UserTourCourse tourCourseForHashTag; | ||
// | ||
// private String content; | ||
// | ||
//} |
16 changes: 8 additions & 8 deletions
16
...alongtheblue/alongtheblue_server/global/data/tourcommunity/TourPostHashTagRepository.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,8 +1,8 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.tourcommunity; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import java.util.List; | ||
|
||
public interface TourPostHashTagRepository extends JpaRepository<TourPostHashTag, Long> { | ||
List<TourPostHashTag> findBytourCourseForHashTag(UserTourCourse userTourCourse); | ||
} | ||
//package org.alongtheblue.alongtheblue_server.global.data.tourcommunity; | ||
// | ||
//import org.springframework.data.jpa.repository.JpaRepository; | ||
//import java.util.List; | ||
// | ||
//public interface TourPostHashTagRepository extends JpaRepository<TourPostHashTag, Long> { | ||
// List<TourPostHashTag> findBytourCourseForHashTag(UserTourCourse userTourCourse); | ||
//} |
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