is JPA support inside 2.0 M1?
i dont know why but i cant seem to find it.
thanks for the help.
is JPA support inside 2.0 M1?
i dont know why but i cant seem to find it.
thanks for the help.
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
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?
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
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
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.
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
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
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.