aileftech / snap-admin

A plug-and-play, auto-generated CRUD database admin panel for Spring Boot apps
MIT License
256 stars 20 forks source link

EnumType not supported #22

Closed fabienfleureau closed 1 year ago

fabienfleureau commented 1 year ago

Describe the bug There is an error for entity that contains field of type enum.

Is the bug at startup before you perform any action? Not applicable

@Entity code

    @Column(name = "status", nullable = false)
    @Enumerated(EnumType.STRING)
    var status: StatusEnum

In case of EnumType.STRING -> print the string itself

aileftech commented 1 year ago

Pushed the implementation on the dev branch. Both ORDINAL and STRING types are supported.

aileftech commented 1 year ago

Released in 0.1.8.