carter-ya/idea-plugin-jpa-support

check the box USE JAVA 8 DATA TYPE but fail to generate correct class

Closed this issue · 5 comments

Describe the bug (描述这个Bug)
I have checked the box USE JAVA 8 DATA TYPE but failed to generate LocaleDateTime for the corresponding mysql type datetime. And in the previous version, it can be done it correctly

Expected behavior (期望的行为)
generate LocateDateTime for datetime when check USE JAVA 8 DATA TYPE

Screenshots (截图,如果有的话)
image
image

idea version (idea的版本号):
IntelliJ IDEA 2020.3.2 (Ultimate Edition)
Build #IU-203.7148.57, built on January 26, 2021
Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7

idea plugin jpa support version (idea plugin jpa support的版本号):
2.0.6EAP

You can fix it this way first
image

After I config this type mapping, it seems that all type mapping failed and fell back to java.lang.String, and I check the throw exception if there is no mapping, the plugin would throw a exception
image
image

I restart my Idea, and it works well now, thank you very much.

I'm sorry you encountered such a problem, please try to uninstall and install again.
image

and try to delete this file
image

Thank you very much, I restart my Idea, and it works well now.