-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: replicate org.dom4j.Element
PostPosted: Tue Sep 27, 2005 3:25 pm 
Beginner
Beginner

Joined: Wed Sep 14, 2005 9:11 am
Posts: 22
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.