API 1.0.16 ExerciseDevice.sort, place
This commit is contained in:
@@ -13,7 +13,9 @@ data class ExerciseDevice (
|
||||
|
||||
@get: NotBlank var name: String = "",
|
||||
@get: NotBlank var description: String = "",
|
||||
@get: NotBlank var imageUrl: String = ""
|
||||
@get: NotBlank var imageUrl: String = "",
|
||||
@get: NotBlank var sort: Int = 0,
|
||||
@get: NotBlank var place: Int = 0
|
||||
){
|
||||
@OneToMany(cascade = [(CascadeType.ALL)], fetch = FetchType.EAGER, mappedBy = "exerciseDevice")
|
||||
@Fetch(value = FetchMode.SUBSELECT)
|
||||
|
||||
@@ -16,6 +16,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.15
|
||||
application.version=1.0.16
|
||||
|
||||
jwt.secret=aitrainer
|
||||
@@ -16,6 +16,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.15
|
||||
application.version=1.0.16
|
||||
|
||||
jwt.secret=aitrainer
|
||||
@@ -26,10 +26,11 @@ class ExerciseDeviceTest {
|
||||
|
||||
assertTrue(properties is List)
|
||||
assertTrue(properties.isNotEmpty())
|
||||
assertEquals(properties.size, 3)
|
||||
assertEquals(properties.size, 5)
|
||||
assertEquals(properties[0].name, "Weight")
|
||||
assertEquals(properties[0].translations[0].name, "Súlyzó")
|
||||
assertEquals(properties[1].name, "Own Weight")
|
||||
assertEquals(properties[3].place, 1)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user