jaikiran pai [
http://community.jboss.org/people/jaikiran] created the discussion
"Re: Non-Java EE (Spring) JPA/Hibernate and native Hibernate applications in
AS7"
To view the discussion, visit:
http://community.jboss.org/message/610501#610501
--------------------------------------------------------------
Marius Bogoevici wrote:
*Group 3. Issues affecting native Hibernate applications*
D) Hibernate 3 was previously available on the CP. Applications migrating from older
versions of JBoss AS will need to include a dependency on the org.hibernate module.
However, due to API changes in Hibernate, some Hibernate 3 applications may not be able to
work with Hibernate 4 (e.g. Spring 3 apps using LocalSessionFactoryBean). *
*
A possible workaround is to include Hibernate 3 in the deployment unit.
AS7 ships
with Hibernate 4, so applications that are meant for Hibernate 3 (I know there are a lot
of them) will have to package the hibernate 3.x jars in their application. They should
+not+ add a org.hibernate module dependency since that would mean a dependency on
Hibernate 4. There's a related discussion about this here
http://lists.jboss.org/pipermail/seam-dev/2011-June/003782.html
http://lists.jboss.org/pipermail/seam-dev/2011-June/003782.html. I think at one point,
Scott Marlow had some plans to add some Hibernate 3 module, but I'm not too sure.
Marius Bogoevici wrote:
E) Decide when to include the Hibernate module and when not (affects hybrid EE/native
Hibernate JPA applications)
... I will let Scott detail that use case.
Scott has a AS7 mailing list thread for
this
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002422.html
http://lists.jboss.org/pipermail/jboss-as7-dev/2011-June/002422.html
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/610501#610501]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]