[
http://jira.jboss.com/jira/browse/JBSEAM-1242?page=all ]
Pete Muir resolved JBSEAM-1242.
-------------------------------
Fix Version/s: 2.0.1.GA
Resolution: Done
Done, just specify the session in components.xml like
<component name="org.jboss.seam.ui.EntityConverter">
<property name="session">#{hibernateSession}</property>
</component>
and it will use it rather than an entityManager
Entity converter for managed Hibernate sessions
-----------------------------------------------
Key: JBSEAM-1242
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1242
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 1.2.1.GA
Reporter: Patrick Ruhkopf
Assigned To: Pete Muir
Priority: Minor
Fix For: 2.0.1.GA
Attachments: components_xml_sample.txt, HibernateEntityConverter.java,
taglib_extract.txt
The EntityConverter (<s:convertEntity>) only works with an EntityManager but not
with Hibernate managed sessions. Please find attached a HibernateEntityConverter for 1.2.1
GA.
I didn't supply a patch yet, because, as petemuir pointed out, the current HEAD
contains a lot of refactoring.
--
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