[
http://jira.jboss.com/jira/browse/JBSEAM-2158?page=comments#action_12414323 ]
Clint Popetz commented on JBSEAM-2158:
--------------------------------------
As I went to implement this, I realized that in addition to HibernateSessionProxy, other
classes like HibernatePersistenceProvider, HibernateSessionProxyInterceptor, and
ManagedHibernateSession would need to treat the session as a classic.Session as well.
Alternatively, I can make HibernateSessionProxy cast the session to the classic interface,
so as not to pollute the other classes with the import of the classic interface. This
would work, because we know that SessionImpl and FullTextSessionImpl both implement the
classic interface.
Please let me know the preferred approach.
Can't inject a org.hibernate.classic.Session
--------------------------------------------
Key: JBSEAM-2158
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2158
Project: Seam
Issue Type: Feature Request
Components: Core
Affects Versions: 2.0.0.CR3
Reporter: Clint Popetz
If one does
import org.hibernate.classic.Session;
@In Session session;
the injection throws an IllegalArgumentException, because HibernateSessionProxy
doesn't implement the classic Session interface. It seems harmless to do this, and
would allow for easier migration of large source bases from loyal hibernate early adoptees
that are now transitioning to the next-big-thing.
If making HibernateSessionProxy implement the classic interface would be acceptable,
please make note of it here and I'll create a patch to that effect.
--
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