Merge branch 'backend-preparations' into 'master'
Backend preparations See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!37
This commit is contained in:
commit
46262af668
@ -6,5 +6,5 @@ RUN ["gradle", "bootJar"]
|
|||||||
FROM openjdk:11-jre-slim
|
FROM openjdk:11-jre-slim
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY --from=build /root/build/libs/*.jar app.jar
|
COPY --from=build /root/build/libs/*.jar app.jar
|
||||||
EXPOSE 80
|
EXPOSE 5000
|
||||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||||
|
@ -20,7 +20,7 @@ public class TimeRecord {
|
|||||||
@Id
|
@Id
|
||||||
private long id;
|
private long id;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
private TimetrackAccount account;
|
private TimetrackAccount account; // TimetrackAccount ID (Lazy)
|
||||||
private Date startdate;
|
private Date startdate;
|
||||||
private Date enddate;
|
private Date enddate;
|
||||||
private Duration time;
|
private Duration time;
|
||||||
|
@ -17,7 +17,7 @@ public class TimetrackAccount {
|
|||||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||||
private long id;
|
private long id;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
private TimetrackUser timetrackUser;
|
private TimetrackUser timetrackUser; // TimetrackUser Id (Lazy) [REMOVE]
|
||||||
private double revenue;
|
private double revenue;
|
||||||
private String name;
|
private String name;
|
||||||
private String description;
|
private String description;
|
||||||
|
@ -21,12 +21,12 @@ public class TimetrackUser {
|
|||||||
private long id;
|
private long id;
|
||||||
@UniqueElements
|
@UniqueElements
|
||||||
private String username;
|
private String username;
|
||||||
private String password;
|
private String password; // strip
|
||||||
private String firstname;
|
private String firstname;
|
||||||
private String lastname;
|
private String lastname;
|
||||||
@OneToOne
|
@OneToOne
|
||||||
private Role role;
|
private Role role; // Projection (String)
|
||||||
@OneToMany
|
@OneToMany
|
||||||
private List<TimetrackAccount> timetrackAccounts;
|
private List<TimetrackAccount> timetrackAccounts; // Lazy List
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
server.port=80
|
server.port=5000
|
||||||
spring.datasource.hikari.initialization-fail-timeout=0
|
spring.datasource.hikari.initialization-fail-timeout=0
|
||||||
spring.datasource.hikari.max-lifetime=300000
|
spring.datasource.hikari.max-lifetime=300000
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
|
@ -15,7 +15,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
ports:
|
ports:
|
||||||
- "5000:80"
|
- "5000:5000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user