Skip to content

Native builds fail to start when using Querydsl #29529

Closed as not planned
Closed as not planned
@ManfredTremmel

Description

@ManfredTremmel

Affects: spring-boot 3.0.0-rc2


I've a little example application which I've ported to spring-boot 3.0.0 (rc2 at the moment) and it works fine in Bytcode mode. Now I've also tried to build a native docker image using mvn -Pnative spring-boot:build-image (what works after a solving a view problems) and start it.
Starting the application fails with a IllegalStateException because it "Did not find a static field of the same type in class de.knightsoftnet.validationexample.shared.models.QPerson". QPerson is the class generated by Querydsl for the really simple Person entity.
Here you can find the stacktrace.txt

PS: Working with AbstractPersistable also fails in native mode, there is no id found

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions