API 1.0.44 TrainingPlan active
This commit is contained in:
@@ -16,6 +16,7 @@ data class TrainingPlan (
|
||||
@Expose @get: NotBlank var type: String = "",
|
||||
@Expose var internalName: String?,
|
||||
@Expose var free: Boolean?,
|
||||
@Expose @get: NotBlank var active: Boolean = false,
|
||||
) {
|
||||
@OneToMany(cascade = [(CascadeType.ALL)], fetch = FetchType.EAGER, mappedBy = "trainingPlan")
|
||||
@Fetch(value = FetchMode.SUBSELECT)
|
||||
|
||||
@@ -6,4 +6,5 @@ import org.springframework.stereotype.Repository
|
||||
|
||||
@Repository
|
||||
interface TrackingRepository: JpaRepository<Tracking, Long> {
|
||||
|
||||
}
|
||||
@@ -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.43
|
||||
application.version=1.0.44
|
||||
|
||||
jwt.secret=aitrainer
|
||||
@@ -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.43
|
||||
application.version=1.0.44
|
||||
|
||||
jwt.secret=aitrainer
|
||||
jasypt.encryptor.password=Tibor
|
||||
|
||||
@@ -176,6 +176,7 @@ class AppPackageTest {
|
||||
assertEquals(plans[1].name, "Beginner Men’s workout")
|
||||
assertEquals(plans[1].internalName, "beginner_man")
|
||||
assertEquals(plans[1].free, true)
|
||||
assertEquals(plans[1].active, true)
|
||||
assertEquals(plans[1].treeId, 37)
|
||||
assertEquals(plans[0].details[0].exerciseTypeId, 37)
|
||||
assertEquals(plans[0].details[1].weight, 20.0)
|
||||
|
||||
Reference in New Issue
Block a user