Commit d39d214d authored by Phạm Duy Phi's avatar Phạm Duy Phi

no message

parent f2395951
...@@ -8,15 +8,14 @@ import org.springframework.data.jpa.repository.Query; ...@@ -8,15 +8,14 @@ import org.springframework.data.jpa.repository.Query;
import java.util.List; import java.util.List;
public interface EProjectRepository extends JpaRepository<Eproject, Integer> { public interface EProjectRepository extends JpaRepository<Eproject, Integer> {
//--------------------------------- Phi ----------------------------------------//
// Eproject findEprojectById(int id); // Eproject findEprojectById(int id);
Eproject findEprojectByEmployee(Employee employee); Eproject findEprojectByEmployee(Employee employee);
Eproject findEprojectByIdAndEmployee(int eProject_Id, Employee employee); Eproject findEprojectByIdAndEmployee(int eProject_Id, Employee employee);
//--------------------------------- Phi ----------------------------------------//
//====================================================================================================== //======================================================================================================
// Hieunv // Hieunv
......
...@@ -11,6 +11,7 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -11,6 +11,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.List; import java.util.List;
public interface TimeSheetRepository extends JpaRepository<TimeSheet, Integer> { public interface TimeSheetRepository extends JpaRepository<TimeSheet, Integer> {
//------------------------------------ Phi ---------------------------------//
TimeSheet findTimeSheetById(int id); TimeSheet findTimeSheetById(int id);
// @Query("select ts from TimeSheet ts order by ts.createdAt desc") // @Query("select ts from TimeSheet ts order by ts.createdAt desc")
...@@ -28,6 +29,7 @@ public interface TimeSheetRepository extends JpaRepository<TimeSheet, Integer> { ...@@ -28,6 +29,7 @@ public interface TimeSheetRepository extends JpaRepository<TimeSheet, Integer> {
List<TimeSheet> showTimeSheetByEproject(Eproject eproject); List<TimeSheet> showTimeSheetByEproject(Eproject eproject);
TimeSheet findTimeSheetByEprojectAndId(Eproject eproject, int timeSheet_Id); TimeSheet findTimeSheetByEprojectAndId(Eproject eproject, int timeSheet_Id);
//------------------------------------ Phi ---------------------------------//
//================================================================================================================== //==================================================================================================================
......
server.port=8081 #server.port=8081
# =============================== # ===============================
# DATABASE CONNECTION # DATABASE CONNECTION
# =============================== # ===============================
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/quantrivanphong spring.datasource.url=jdbc:mysql://localhost:3306/quantrivanphong
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password= spring.datasource.password=ahihi123
# =============================== # ===============================
...@@ -13,7 +13,7 @@ spring.datasource.password= ...@@ -13,7 +13,7 @@ spring.datasource.password=
# =============================== # ===============================
spring.jpa.show-sql=true spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
#spring.jpa.properties.hibernate.default_schema=qlns_itsol #spring.jpa.properties.hibernate.default_schema=qlns_itsol
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment