Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

现在没有配置枚举映射方式(name or ordinal)的选项,在普遍使用ordinal的情况下会比较麻烦 #39

Closed
ClearPlume opened this issue Feb 28, 2023 · 1 comment

Comments

@ClearPlume
Copy link
Contributor

如下图所示,我需要对每一个枚举都用EnumType注解,对其中每一个值都使用EnumItem注解

枚举上的EnumType注解
枚举上的EnumType注解

枚举值上的EnumItem注解
枚举值上的EnumItem注解

@babyfish-ct
Copy link
Owner

0.7.9, 两种办法

  1. SqlBuilder.setDefaultEnumStrateey
  2. jimmer.defaultEnmumStrategy in application.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants