Results 1 to 9 of 9

Thread: jpa and 2.0 M1

  1. #1

    Question jpa and 2.0 M1

    is JPA support inside 2.0 M1?
    i dont know why but i cant seem to find it.
    thanks for the help.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Yes, there is but inside the sandbox. The reasons for that are that JPA is not yet final (it's still just a draft) and it might change and the second that M1 is just the first milestone.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

    Default jpa

    i am just starting to think about the process of migrating my web app from a core patterns (business delagete, service locator, in house dao's etc...) to spring IoC + some ORM.

    i dont have a time frame but i think i would really like to use jpa instead of using straight hibernate and as a bonus learn jpa on the way.

    does the sandbox jpa template work with the hibernate entity manager?
    are there jpa examples in the sandbox?

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Yes it does - I'm not sure about the samples though; M2 release scheduled for late January, early February will contain a lot more documentation and samples.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  5. #5
    Join Date
    Jul 2005
    Location
    Rüdesheim, Germany
    Posts
    29

    Default

    Have a look at my following posting, I've put together a quick howto to get started:

    http://forum.springframework.org/sho...2&postcount=12

    Sebastian

  6. #6

    Question annotations are a must????

    hi;
    thanks for the link;
    i just wanted to ask if using jdk1.5 annotations are a must when using jpa with the hibernate entity manager?

    i dont intend to work with jdk1.5 for now.
    any information would be great.
    thanks.

  7. #7
    Join Date
    Jul 2005
    Location
    Rüdesheim, Germany
    Posts
    29

    Default

    You don't necessarily need Java 5 annotations (JSR-175). EJB 3.0 spec also gives the possibility to define metadata in traditional deployment descriptors.

    I think Hibernate EntityManager also supports traditional XML mapping files (*.hbm.xml) which can be defined in your persistence.xml

    Though, EJB 3.0/JPA stuff makes heavily use of Java 5 generics, I don't know if there are plans (or implementations) to support Java < 1.5.

    Anyway, I recommend to switch to Java 5 (if possible), especially the generics make the work with entities, collections and DAO-code so much easier, safer and less verbose!

    Sebastian

  8. #8
    Join Date
    Dec 2005
    Posts
    18

    Default

    Jpa works well in Spring 1.3 RC1 (build 381-20051129). I use it accurately with hibernate entity manager 3.1beta5 and hibernate annotation 3.1 beta 7. And of course hibernate 3.1.

    Gengis

  9. #9

    Default more info

    hi;
    this is a little of topic for spring but i was wondering if you used java 5 JPA annotation (@entity etc...) and avoided the .hbm files.
    also, i was wondering if you had to use the .par file for packaging or does the hibernate entity manager support the new 'regular classpath' packaging.
    thanks.
    Last edited by gkatz; Jan 1st, 2006 at 03:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •