Hi I am trying to delete records from the db. First of all I am using
find(String query) method to fetch the records from the db
and then i am using
hibernateTemplate.delete(Object obj)
but when i do this , its throwing the following exception:-
Code:
Caused by:
org.hibernate.MappingException: Unknown entity: [Ljava.lang.Object;
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:548)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:67)
at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:49)
at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:766)
at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:744)
at org.springframework.orm.hibernate3.HibernateTemplate$25.doInHibernate(HibernateTemplate.java:780)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)
at org.springframework.orm.hibernate3.HibernateTemplate.delete(HibernateTemplate.java:774)
at org.springframework.orm.hibernate3.HibernateTemplate.delete(HibernateTemplate.java:770)
not sure why.....
Please help.
Thanks in advance.
[/code]