Re: Metadata aren't correct
Posted by:
yong.wang
Date: May 06, 2005 08:57AM
Mark,
The problem we have with 3.1.x connectors and hibernate:
We have a field defined as follows:
IS_DEMO char default 0 NULL
And the all records has 0 for this field. But hibernate is giving this exception:
10:41:31,577 INFO [AccessibleRequestHandlerFactory]
org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.manheim.dms.entity.company.vo.Company.isDemo; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.manheim.dms.entity.company.vo.Company.isDemo
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.manheim.dms.entity.company.vo.Company.isDemo
at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:59)
at org.hibernate.tuple.AbstractTuplizer.setPropertyValues(AbstractTuplizer.java:207)
at org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:171)
at org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2923)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:494)
at org.hibernate.loader.Loader.doQuery(Loader.java:413)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:208)
at org.hibernate.loader.Loader.doList(Loader.java:1522)
at org.hibernate.loader.Loader.list(Loader.java:1505)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:400)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:791)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at org.springframework.orm.hibernate3.HibernateTemplate$32.doInHibernate(HibernateTemplate.java:812)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:310)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQuery(HibernateTemplate.java:803)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQuery(HibernateTemplate.java:795)
at com.manheim.dms.entity.company.CompanyDAOImpl.findAllCompanies(CompanyDAOImpl.java:153)
....
Do you think this is a connector issue or something we didn't do wrong? Thanks!
Subject
Written By
Posted
Re: Metadata aren't correct
May 06, 2005 08:57AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.