6 Commits

Author SHA1 Message Date
Michal Michaluk
95c751ccef spring.io rep fix 2021-04-24 06:55:07 +02:00
Michał Michaluk
3660ae38ae Merge pull request #20 from adamkulawik/feature/add-endpoint-for-current-demands
New query for current demand per day introduced
2018-12-21 20:12:04 +01:00
Adam Kulawik
6e3e79db46 new query for current demand per day introduced 2018-11-02 23:43:25 +01:00
Michał Michaluk
9e93d7e778 Merge pull request #19 from adamkulawik/bugfix/docker-build-fixed
gradle build with docker fixed
2018-11-02 23:36:29 +01:00
Adam Kulawik
b139f01341 gradle build with docker fixed 2018-11-02 21:27:04 +01:00
Jakub Pilimon
b2ad52cc34 Merge pull request #16 from ddd-by-examples/tech/java10compatibility
compatibility with java 9 and java 10 alongside java 8
2018-07-02 12:51:16 +02:00
4 changed files with 12 additions and 7 deletions

View File

@@ -2,5 +2,5 @@ FROM openjdk:8u171-jdk-alpine3.7
MAINTAINER Michał Michaluk <michal.michaluk@bottega.com.pl>
EXPOSE 8080
COPY target/app.jar app.jar
COPY build/libs/app.jar app.jar
ENTRYPOINT ["java", "-jar","/app.jar", "--spring.profiles.active=docker"]

View File

@@ -22,6 +22,7 @@ dependencies {
[bootJar, bootRun]*.enabled = true
jar.enabled = false
bootJar.archiveName='app.jar'
task stubsJar(type: Jar) {
classifier = "stubs"

View File

@@ -2,9 +2,9 @@ buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/release" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/release" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE"
@@ -53,9 +53,9 @@ allprojects {
url getProp("M2_LOCAL")
}
}
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://repo.spring.io/release" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/release" }
}
publishing {

View File

@@ -16,9 +16,13 @@ import java.util.Optional;
collectionResourceRel = "demand-forecasts",
itemResourceRel = "demand-forecast")
public interface CurrentDemandDao extends ProjectionRepository<CurrentDemandEntity, Long> {
@Deprecated
@RestResource(path = "refNos", rel = "refNos")
List<CurrentDemandEntity> findByRefNoAndDateGreaterThanEqual(@Param("refNo") String refNo, @Param("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate date);
@RestResource(path = "byDate")
List<CurrentDemandEntity> findByDate(LocalDate date);
@RestResource(exported = false)
Optional<CurrentDemandEntity> findByRefNoAndDate(String refNo, LocalDate date);
}