I'm trying to use hibernates xml capabilities. I'm successful in getting xml out, but not in putting it back in. What I'm trying to do is:
1) get an element out
2) change something on that element (not the id)
3) persist the change
This is where the exception is being thrown.
dom4jSession.replicate(woElement, ReplicationMode.OVERWRITE);
I'm not sure if I'm doing this right. There's a little blurb at the very bottom of this page:
http://www.hibernate.org/hib_docs/v3/re ... l/xml.html
but no examples. Has anyone done this or have any idea what I'm doing wrong?
Thanks,
Ben
Hibernate version: 3.0.x
Full stack trace of any exception that occurs:
Testcase: testSomething took 4.187 sec
Caused an ERROR
Unknown entity: workOrder; nested exception is org.hibernate.MappingException: Unknown entity: workOrder
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: workOrder; nested exception is org.hibernate.MappingException: Unknown entity: workOrder
org.hibernate.MappingException: Unknown entity: workOrder
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:569)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1089)
at org.hibernate.event.def.DefaultReplicateEventListener.onReplicate(DefaultReplicateEventListener.java:56)
at org.hibernate.impl.SessionImpl.replicate(SessionImpl.java:694)
at com.xerox.clt.portal.dao.WorkOrderDAO$5.doInHibernate(WorkOrderDAO.java:161)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:356)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:329)
at com.xerox.clt.portal.dao.WorkOrderDAO.replicateWorkOrderElement(WorkOrderDAO.java:158)
at com.xerox.clt.portal.TestXml.testSomething(TestXml.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Name and version of the database you are using: oracle 9.0.2