[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2158) Can't inject a org.hibernate.classic.Session

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri May 23 16:32:42 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2158?page=comments#action_12414122 ] 
            
Dan Allen commented on JBSEAM-2158:
-----------------------------------

I don't see anything stopping us from doing this. Please submit a patch.

> 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

        



More information about the seam-issues mailing list