

To use these new features in version 1.7.0-Beta, configure the build scripts from the Early Access Preview. Starting with version 1.7.0, "Milestone" releases are now called "Beta" releases to align with the standard software release life cycle terminology, where "Beta" means that no new features are added and the focus is on stabilizing the features with the help of feedback from the community.

Regular expressions now support named capturing groups in Kotlin/JS and Kotlin/Native and allow checking for exact matches at specific positions. Note: I do not send the null values from the client.JetBrains has released Kotlin 1.7.0-Beta, enabling builder inference and definitely non-nullable types by default and reintroducing the min(), max(), minBy(), maxBy(), minWidth() and maxWith() functions. I also tried changing var to val but the error still persists I also debugged, and the attributes are not initialized with their default values. TestImplementation "2:mockito-kotlin:2.2.0"Īnnotation("")Īnnotation("")īut still I get the issue indicating me, that Spring Boot isn't using my default values from data class. I receive the data through following controller: book: BookItem): ResponseEntity "

Var publicationDate: Date = "id", nullable = GenerationType.SEQUENCE, generator = "sequenceGenerator") Var dateOfPurchase: Date = "publicationDate", nullable = false) Var status: BookStatus = "dateOfPurchase") Var price: Double? = "status", nullable = false) Var label: String? = "isReferenceOnly", nullable = false) Var barcode: String = "label", unique = true) Var format: BookFormat = "barcode", nullable = false)

One entity looks like that: package ĭata class BookItem = ) Now I can't update any Entity received through PUT/POST, because the data doesn't contain the default values from the data class I have started migrating a Spring Boot application from Java to Kotlin.
