Skip to content

Reevaluate the use of Response for generated REST resources of quarkus-rest-data-panache #46849

@m4rcingsxr

Description

@m4rcingsxr

Hello World!
Im trying to use auto generated endpoints from rest-data-panache (Hibernate Reactive)

Right now i'm having problems with kotlin serialization-deserialization. In documentation it says that endpoints return Response while it should return RestResponse instead.

⚙️ Environment
Quarkus Version: 3.19.3
Kotlin Version: 2.0.21
quarkus-rest-koltin-serialization
Gradle 12.0

@Serializable
@Entity
@Table
class MockUser(
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "mock_user_seq")
    @SequenceGenerator(name = "mock_user_seq", sequenceName = "mock_user_seq", allocationSize = 1)
    val id: Long? = null,

    val username: String,

    val age: Int

) : PanacheEntityBase()
interface MockUserResource : PanacheEntityResource<MockUser, Long> {
}

We mix kotlin with java intentionally because there's no direct support for kotlin #12235

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions