facebook

JPA 2.0 entity generation

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #311285 Reply

    subh4u
    Member

    Hi ,

    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

    #311295 Reply

    davemeurer
    Member

    Hi 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

    #311332 Reply

    Brian Fernandes
    Moderator

    Subhashish,

    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?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JPA 2.0 entity generation

You must be logged in to post in the forum log in