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

bearcat-dao 如何返回自增id? #22

Open
cz1314520 opened this issue Jun 3, 2019 · 0 comments
Open

bearcat-dao 如何返回自增id? #22

cz1314520 opened this issue Jun 3, 2019 · 0 comments

Comments

@cz1314520
Copy link

我的表主键id设为自增,
然后用add方法和batchAdd方法添加数据的时候,返回的信息中,为什么id都是entity里的0?
如何才能返回数据本身的自增id?
不会是需要插入后在查一遍吧??

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

1 participant