[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3395) Oracle LONG datatype fetching fails on superclass Criteria query
Strong Liu (JIRA)
noreply at atlassian.com
Mon Apr 5 10:00:31 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36137#action_36137 ]
Strong Liu commented on HHH-3395:
---------------------------------
if you have a test case (pojo+hbm), please attach it, thanks
> Oracle LONG datatype fetching fails on superclass Criteria query
> ----------------------------------------------------------------
>
> Key: HHH-3395
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3395
> Project: Hibernate Core
> Issue Type: Bug
> Environment: Oracle 10
> Windows XP
> Hibernate 3
> Weblogic 9.2
> Reporter: Ville Anttonen
>
> I have dao-layer method like this.
> public PersistentQuery getPersistentQuery(String userId, long queryId){
> ....
> Criteria criteria = m_session.createCriteria(PersistentQuery.class);
> criteria.add(Expression.eq("userId",userId));
> criteria.add(Expression.eq("id",new Long(queryId)));
> return (PersistentQuery) criteria.uniqueResult();
> .....
> }
> Previous code throws "Stream already closed" exception.
> PersistentQuery is abstract class
> and it's subclasses contains UserType - field
> that wraps Oracle's long varchar field.
> I can fix this by creating criteria by subclass
> like " Criteria criteria = m_session.createCriteria(PersistentOrganizationQuery.class); ".
> We're migrating from ingres -> oracle and in ingres previous implementation worked fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list