-
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
1 parent
7140495
commit eeb6871
Showing
8 changed files
with
143 additions
and
20 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
44 changes: 44 additions & 0 deletions
44
src/main/java/it/bruffa/facilitymanager/model/dto/StructureFilter.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,4 +1,48 @@ | ||
package it.bruffa.facilitymanager.model.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonManagedReference; | ||
import it.bruffa.facilitymanager.model.entity.CleaningAction; | ||
import it.bruffa.facilitymanager.model.entity.Gate; | ||
import it.bruffa.facilitymanager.model.entity.Maintenance; | ||
import it.bruffa.facilitymanager.model.entity.Quote; | ||
import jakarta.persistence.*; | ||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotNull; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class StructureFilter { | ||
|
||
private Long id; | ||
private Long gateId; | ||
private Long quoteId; | ||
|
||
private String name; | ||
|
||
private String address; | ||
|
||
private String city; | ||
|
||
private String cap; | ||
|
||
private String province; | ||
|
||
private String country; | ||
|
||
private Double latitude; | ||
|
||
private Double longitude; | ||
|
||
private String description; | ||
|
||
private Boolean isActive; | ||
private Integer cleaningDuration; | ||
|
||
} |
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
9 changes: 9 additions & 0 deletions
9
src/main/java/it/bruffa/facilitymanager/repository/StructureRepository.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,7 +1,16 @@ | ||
package it.bruffa.facilitymanager.repository; | ||
|
||
import it.bruffa.facilitymanager.model.entity.Structure; | ||
import it.bruffa.facilitymanager.model.projection.StructureIdInfo; | ||
import it.bruffa.facilitymanager.model.projection.StructureInfo; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface StructureRepository extends JpaRepository<Structure, Long> { | ||
|
||
Optional<StructureInfo> findStructureById(Long id); | ||
|
||
List<StructureIdInfo> getStructureIdInfoBy(); | ||
} |
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