[
http://jira.jboss.com/jira/browse/JBSEAM-1962?page=all ]
Dan Allen resolved JBSEAM-1962.
-------------------------------
Resolution: Done
JBSEAM-2132 - use a default value expression for the persistence manager on the two
resource local transaction components rather than throwing an exception when it is not
specified
JPA - #{entityManager}
Hibernate- #{session}
This is consistent with the PersistenceController classes in the Application Framework
add default value expressions to EntityTransaction and
HibernateTransaction
---------------------------------------------------------------------------
Key: JBSEAM-1962
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1962
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.0.0.CR1
Reporter: Dan Allen
Assigned To: Dan Allen
Priority: Minor
Fix For: 2.0.1.GA
Attachments: JBSEAM-1962-refdoc-v1.txt, JBSEAM-1962-v1.txt
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
The Seam CRUD framework uses the standard names entityManager for JPA and session for
Hibernate when the name of the persistence context is not specified. However,
EntityTransaction and HibernateTransaction components do not use default values. It seems
like it would be beneficial to add default values to save a couple of keystrokes. I agree
it is pretty minor, but as the Seam documentation says, and I quote "All those
keystrokes add up!"
Assuming I have a managed persistence context named "entityManager"
Current:
<transaction:entity-transaction entity-manager="#{entityManager}" />
Desired:
<transaction:entity-transaction />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira