Skip to content

Commit

Permalink
Merge pull request #39 from JNU-econovation/feat/2/schedule-domain
Browse files Browse the repository at this point in the history
Feat/2/schedule domain
  • Loading branch information
capDoYeonLee authored Apr 7, 2024
2 parents 959ba71 + 2f04674 commit 178fc17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.demo.schedule.persistence;

import com.example.demo.schedule.application.model.ScheduleModel;
import jakarta.persistence.Entity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
Expand All @@ -14,4 +15,7 @@
@Repository
public interface ScheduleRepository extends JpaRepository<ScheduleEntity, Long> {
@Query("select p from ScheduleEntity p") Stream<ScheduleEntity> streamAll();

@Query("SELECT p.eventId, p.eventName, p.eventStartDate, p.createdDate FROM ScheduleEntity p")
List<ScheduleModel> getYearCalendar();
}
2 changes: 1 addition & 1 deletion BE/error/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ spring.datasource.url=jdbc:mysql://${MYSQL_HOST:localhost}:3306/example?serverTi
spring.datasource.username=user
spring.datasource.password=UserPassword
spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.MySQLDialect
cors.allow-origin.urls=http://localhost:5173
cors.allow-origin.urls=http://43.203.203.3

0 comments on commit 178fc17

Please sign in to comment.