[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1173) HibernateSessionProxy ClassCastException
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Jul 29 16:49:07 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-1173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated JBSEAM-1173:
------------------------------
Fix Version/s: The future
(was: 2.1.0.GA)
> HibernateSessionProxy ClassCastException
> ----------------------------------------
>
> Key: JBSEAM-1173
> URL: https://jira.jboss.org/jira/browse/JBSEAM-1173
> Project: Seam
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.0.GA
> Reporter: dazhu tang
> Assignee: Pete Muir
> Fix For: The future
>
>
> 1. i want to inject the hibernate session in seam,so i config the component.xml as follows:
> <core:hibernate-session-factory name="hibernateSessionFactory" />
> <core:managed-hibernate-session name="session" auto-create="true"
> session-factory-jndi-name="java:/HibernateSessionFactory" />
> 2. Inside managed Bean , i use @in to inject the Hibernate Session,
> but when i am using DetachedCriteria in my application
> DetachedCriteria criteria =
> DetachedCriteria.forClass(Smartform.class);
> criteria.getExecutableCriteria(session)
> i got the HibernateSessionProxy ClassCastException,i debug the application and found that seam injected HibernateSessionProxy not the real HibernateSession object . So DetachedCriteria can't work.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list