API 1.0.39 FAQ sort

This commit is contained in:
Bossanyi Tibor
2021-05-14 11:12:41 +02:00
parent 7d78aa38fb
commit af4264d018
6 changed files with 15 additions and 5 deletions
@@ -10,7 +10,8 @@ import javax.persistence.*
data class Faq (
@Expose @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @get: NonNull var faqId: Long = 0,
@Expose @get: NonNull var name: String,
@Expose @get: NonNull var description: String,
@Expose var description: String? = null,
@Expose var sort: Int? = null,
) {
@OneToMany(cascade = [(CascadeType.ALL)], fetch = FetchType.EAGER, mappedBy = "faq")