Hi,
Need help on the below
DeativationMetrics is my domain object class: with attribute private Long dmid;
Mapping files:
<set name="deativationMetrics" lazy="false" table="TDMI_DEACTIVATIONS_METRICS" cascade="persist,save-update"> <key column="REQ_TID" not-null="true"/> <one-to-many class="com…..domain.DeativationMetrics"/> </set> *********************************************
<class name="com….domain.DeativationMetrics" table="TDMI_DEACTIVATIONS_METRICS" > <id name="dmid" type="java.lang.Long"> <column name="DM_TID" precision="18" scale="0"/> <generator class="sequence"> <param name="sequence">SRKYC_GEN_TID</param> </generator> </id>
TDMI_DEACTIVATIONS_METRICS is the db table DM_TID is of Number 18 datatype Stack trace : com.ubs.datait.rkyc.dminbox.dataaccess.domain.DeativationMetrics.dmid: UserGuid: PSI43294403: RequestId: 18925005 org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com….domain.DeativationMetrics.dmid at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171) at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:183) at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:3539) at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:3255) at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:181) at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:487) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507) at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499) at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218) at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268) at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216) at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169) at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296) at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242) at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219) at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169) at org.hibernate.engine.Cascade.cascade(Cascade.java:130) at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131) at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65) at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35) at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969) at org.hibernate.impl.SessionImpl.executeNativeUpdate(SessionImpl.java:1158) at org.hibernate.impl.SQLQueryImpl.executeUpdate(SQLQueryImpl.java:302) …….
……. Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:145) ... 70 more [02/12/09 11:58:19:895 GMT] 0000006f SystemOut O 11:58:19,895 TRACE [WebContainer : 7] utils.MessageUtility - Method MessageUtility.getMessage entry
|