- This topic has 2 replies, 3 voices, and was last updated 14 years, 2 months ago by Brian Fernandes.
-
AuthorPosts
-
subh4uMemberHi ,
I am using JPA 2.0(Hibernate 3.5 implementation) in my current project.
The entities generated using Scaffolding (Using Add JPA Capabilities option) are of JPA 1.0 specific.
In the scaffolding process I added latest jars(JPA 2.0 – Hibernate 3.5) using user libraries option . Even after that the generation is taking place with JPA 1.0.
It would be great if you let me know about any plugin available for JPA 2.0 entity generation.
Thanks & Regards,
Subhashish
davemeurerMemberHi Subhashish,
Thanks for the post. I believe this thread is better answered in the MyEclipse > Database tools forum, since you are using “Add JPA Capabilities”. (I’ll move it for you)
MyEclipse for Spring currently scaffolds Hibernate 3.2, which does not support JPA 2.0 as you may know. To access the ME4S scaffolding, you don’t need to add JPA Capabilities first. Just right-click a project and select MyEclipse > Scaffold Spring CRUD Application… (this adds JPA and hibernate for you) – However, it currently is JPA 1.0, and so we will consider this feature in future releases.
The folks monitoring the Database tools may have better information for you regarding JPA 2.0.
Kind regards,
Dave
Brian FernandesModeratorSubhashish,
Could you please clarify for us exactly what wizard you are using to generate code?
In any event, neither ME nor ME4S support JPA 2.0 at this point; changing the libraries to JPA 2.0 libraries will not change the code generated, it will only lead to JPA 2 libraries being used for your application instead.
MyEclipse and ME4S will be adding support for JPA 2 in future releases in the MyEclipse 9 series. So we are able to better serve your needs, could you tell us what JPA 2 features you would like to see in the generated code? Any specific annotations or constructs?
-
AuthorPosts