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

关于日期类型不能自动识别 #103

Closed
zhengdewei94 opened this issue Feb 3, 2021 · 1 comment
Closed

关于日期类型不能自动识别 #103

zhengdewei94 opened this issue Feb 3, 2021 · 1 comment
Labels
question Further information is requested

Comments

@zhengdewei94
Copy link

我在 数据库字设置有日期类型, 但是插入的时候不能自动插入
image
image
但是加了@column注解就可以了,
image

@catchex
Copy link
Member

catchex commented Feb 3, 2021

你需要配置一个Transition

@Column(transition = SqlDateTimeTransition.class)
private Timestamp registeredAt;

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

No branches or pull requests

2 participants