0 Replies Latest reply on Feb 22, 2011 9:07 AM by marx3

    Weld + JPA2 CRUD example

    marx3 Apprentice

      It's said that now I should use JPA 2 because of new features it offers, for example typesafeness.
      Hovewer I'm not able to make working example of Weld application together with JPA 2.
      Application made from Weld archetype (widgets example) uses JPA 1. If I add metamodel generation:


      metamodel is generated properly, hovewer application stops working properly. Import.sql says Widget table is absent, and later @PersistenceContext is null.

      Is it at all good idea to use JPA 2? Is it stable and documented enough?