-
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.
Merge pull request #2 from mairess/creates-repository
Creates repositories
- Loading branch information
Showing
10 changed files
with
150 additions
and
77 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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/maires/wnet/repository/AddressRepository.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,13 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Address; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
/** | ||
* The interface Address repository. | ||
*/ | ||
@Repository | ||
public interface AddressRepository extends JpaRepository<Address, Long> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/maires/wnet/repository/CustomerRepository.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,13 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Customer; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
/** | ||
* The interface Customer repository. | ||
*/ | ||
@Repository | ||
public interface CustomerRepository extends JpaRepository<Customer, Long> { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/maires/wnet/repository/EquipmentRepository.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,11 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Equipment; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
/** | ||
* The interface Equipment repository. | ||
*/ | ||
public interface EquipmentRepository extends JpaRepository<Equipment, Long> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/maires/wnet/repository/InstallationRepository.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,13 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Installation; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
/** | ||
* The interface Installation repository. | ||
*/ | ||
@Repository | ||
public interface InstallationRepository extends JpaRepository<Installation, Long> { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/maires/wnet/repository/PlanRepository.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,11 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Plan; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
/** | ||
* The interface Plan repository. | ||
*/ | ||
public interface PlanRepository extends JpaRepository<Plan, Long> { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/maires/wnet/repository/TechnicianRepository.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,11 @@ | ||
package com.maires.wnet.repository; | ||
|
||
import com.maires.wnet.entity.Technician; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
/** | ||
* The interface Technician repository. | ||
*/ | ||
public interface TechnicianRepository extends JpaRepository<Technician, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.maires.wnet.utils; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
|
||
|
||
/** | ||
* The type Date util. | ||
*/ | ||
public class DateUtil { | ||
|
||
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern( | ||
"dd-MM-yyyy'T'HH:mm:ss"); | ||
|
||
/** | ||
* Date util string. | ||
* | ||
* @return the string | ||
*/ | ||
public static String formatCurrentDate() { | ||
LocalDateTime now = LocalDateTime.now().minusHours(3); | ||
return now.format(formatter); | ||
} | ||
} |