pupsnow / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

Support for JPA and persistence.xml #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Can be configured to support dphibernate with JPA, persistence.xml and an
existing connection settings? thanks

Original issue reported on code.google.com by diego.ve...@gmail.com on 12 Jun 2009 at 4:12

GoogleCodeExporter commented 9 years ago
did you ever find a work-around or solution for this?

Original comment by paul.she...@gmail.com on 11 Jan 2010 at 10:25

GoogleCodeExporter commented 9 years ago
I modify the source code dphibernate, check this.
http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-
jpa/

Original comment by diego.ve...@gmail.com on 11 Jan 2010 at 11:02

GoogleCodeExporter commented 9 years ago
would you be interested in sharing the code changes that you made?  
i have the dpHibernate source code.  i see from the article that it says 
something
about using the AnnotationConfiguration instead of Configuration class.  But the
article still implies the use of the hibernate.cfg.xml, rather than the
persistence.xml file.  how/where did you modify the dpHibernate source code?

i am in such a bind with this, it would really save me if you could share your 
code
changes.  please?

Original comment by paul.she...@gmail.com on 11 Jan 2010 at 11:30

GoogleCodeExporter commented 9 years ago
solved.  all you have to do is use the SpringSessionUtil class instead of the
HibernateUtil class.

Original comment by paul.she...@gmail.com on 12 Jan 2010 at 2:33

GoogleCodeExporter commented 9 years ago
Changing to Fixed

Original comment by martypit...@gtempaccount.com on 7 Jul 2010 at 3:51