[jboss-dev-forums] [JBoss AS7 Development] - Re: Non-Java EE (Spring) JPA/Hibernate and native Hibernate applications in AS7

Ales Justin do-not-reply at jboss.com
Thu Jun 16 15:58:36 EDT 2011


Ales Justin [http://community.jboss.org/people/alesj] 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/610676#610676

--------------------------------------------------------------
> A custom persistence.xml "version" property can be introduced to match the persistence providers version tag. 
> 
> If we were to do this via "module" packaging, Hibernate 3 could be resolve via a dropped in Hibernate 3 module. 
Why a custom "version" property?

I would simply do this:
* is it Hibernate provider (no provider == Hibernate)* is there explicit Hibernate module defined in jboss-deployment-structure.xml / attachments
* no explicit Hibernate module == the default used in AS7 -- v4

* do the same for other JPA providers* for each provider define its module name; perhaps even ship few with AS7?
* have default versions, check for explicit diff module version
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/610676#610676]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110616/60466b1f/attachment.html 


More information about the jboss-dev-forums mailing list