[jboss-dev-forums] [JBoss AS7 Development] - Re: Non-Java EE (Spring) JPA/Hibernate and native Hibernate applications in AS7
Scott Marlow
do-not-reply at jboss.com
Sun Jun 19 12:52:40 EDT 2011
Scott Marlow [http://community.jboss.org/people/smarlow] 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/610917#610917
--------------------------------------------------------------
Pros of a custom "version" property:
* It is configured in the same file as the persistence provider (easier to use if configured in one place)
* Different versions of the provider could be used from the same app (its arguable whether this is a safe practice, could be too much rope)
Cons: of a custom "version property:
* Duplicates what could already be done at the deployment level (via jboss-deployment-structure.xml)
* Ensuring the version property resolves to a valid persistence provider could be a pain. A module reference is less likely to be wrong.
* Updating a production application persistence.xml might not be allowable. It might be safer to just update the jboss-deployment-structure module references.
Seems to me that either way could work, but point taken.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/610917#610917]
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/20110619/ac358240/attachment.html
More information about the jboss-dev-forums
mailing list