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

对于基本类型long报错,比如如下SQL #4

Open
iceqing opened this issue Aug 7, 2018 · 2 comments
Open

对于基本类型long报错,比如如下SQL #4

iceqing opened this issue Aug 7, 2018 · 2 comments

Comments

@iceqing
Copy link

iceqing commented Aug 7, 2018

@ReturnGeneratedKeys
@SQL("INSERT INTO " + TABLE_NAME + " (" + INSERT_COLUMNS + ") VALUES (" + INSERT_VALUES + ")")
long insert(UserBankcard one);
@iceqing
Copy link
Author

iceqing commented Aug 7, 2018

如果吧long改为Long就行了,能不能解决兼容一下?

@iceqing iceqing changed the title 对于基本类型来兴报错,比如如下SQL 对于基本类型long报错,比如如下SQL Aug 7, 2018
@iceqing
Copy link
Author

iceqing commented Aug 7, 2018

以下是具体的报错信息:
org.springframework.dao.InvalidDataAccessApiUsageException: error return type, only support int/long/double/float/void type for method with @ReturnGeneratedKeys:public abstract long

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