API 1.0.42 exercises.training_plan_details_id

This commit is contained in:
Bossanyi Tibor
2021-05-25 15:38:26 +02:00
parent 3028a45fa7
commit 115936c4af
11 changed files with 2299 additions and 369 deletions
@@ -14,6 +14,9 @@ data class CustomerTrainingPlanDetails (
@Expose var set: Int?,
@Expose var repeats: Int?,
@Expose var weight: Double?,
@Expose var restingTime: Int? = 0,
@Expose var parallel: Boolean? = false,
@Expose var day: String? = null,
) {
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "customerTrainingPlanId", nullable = false)
@@ -18,6 +18,7 @@ data class Exercises (
@Expose @get: NonNull var unit: String? = null,
@Expose @get: NonNull var unitQuantity: Double? = null,
@Expose @get: NonNull var exercisePlanDetailId: Int = 0,
@Expose var trainingPlanDetailsId: Int? = 0,
@Expose @Id @GeneratedValue(strategy = GenerationType.IDENTITY) val exerciseId: Long = 0
)
@@ -17,6 +17,6 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=1.0.41
application.version=1.0.42
jwt.secret=aitrainer
+1 -1
View File
@@ -17,7 +17,7 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=1.0.41
application.version=1.0.42
jwt.secret=aitrainer
jasypt.encryptor.password=Tibor