From: Steve E. <ste...@jb...> - 2006-06-28 16:23:45
|
Not really. The closest thing would be a particular series of tests from the test suite which specifically test the ability for users to plug in custom EntityPersister implementations. Check out org.hibernate.test.legacy.MasterDetailTest#testCustomPersister. However, that is a *very* basic example. Another thing you'll want to look at is the hierarchy employed by the default persister implementations as there are a number of optional interfaces (such as Queryable/QueryableCollection e.g.) that you will almost certainly want to utilize as well. -----Original Message----- From: hib...@li... [mailto:hib...@li...] On Behalf Of Frank Cohen Sent: Wednesday, June 28, 2006 9:27 AM To: Emmanuel Bernard Cc: hib...@li... Subject: Re: [Hibernate] Object-to-XMLDB mapping Thanks, Emmanuel! Are there any articles or a developer "how-to" guide on writing new =20 persisters? -Frank On Jun 28, 2006, at 1:46 AM, Emmanuel Bernard wrote: > I must admit I never thought about XML DB requirements, so I 'll =20 > have to trust you :-). A week might be ok for an experiment but not =20 > to do everything. > > Frank Cohen wrote: >> Thanks for the pointer Emmanuel. I'm doing the investigation work =20 >> now and will seek funding in the next week or two. I have funding =20 >> to creating some experiments. I'm thinking about spending about a =20 >> week to see how I can use Hibernate to do the following with our =20 >> native XML DB: >> >> 1) XML documents in the file system need to be sorted and stored =20 >> in an XMLDB >> 2) Java object contains a DOM object that needs to be stored in an =20 >> XMLDB >> 3) Java object contains a hashmap that needs to be stored in an XMLDB >> 4) Web Service response comes from stored Java object data in an =20 >> XMLDB >> 5) Java method response comes from stored Java object data in an =20 >> XMLDB >> >> These seem to cover the majority of use cases for Hibernate and XML. >> >> Does this make sense to you? Am I on the right track? >> >> -Frank >> >> >> On Jun 27, 2006, at 5:41 AM, Emmanuel Bernard wrote: >> >>> I guess you'll have at least to reimplement EntityPersister and =20 >>> CollectionPersister. This is not gonna be a 5 mins work. >>> >>> Frank Cohen wrote: >>>> I read in the Hibernate tutorial that there is a working group =20 >>>> of developers for new functions that will make it easier to =20 >>>> use Hibernate to work with XML data. My company makes a native =20 >>>> XML database (TigerLogic) and I would like to offer =20 >>>> contributions to Hibernate that allow Hibernate users to =20 >>>> persist data in our native XML database. Would someone point me =20 >>>> in the right direction to make this happen? >>>> >>>> -Frank >>>> >>>> --- >>>> >>>> Frank Cohen >>>> Raining Data >>>> http://www.RainingData.com >>>> http://www.xquerynow.com for free XML, XQuery and native XML =20 >>>> database tips, techniques and solutions. >>>> >>>> Using Tomcat but need to do more? Need to support web services, =20 >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make =20 >>>> your job easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on =20 >>>> Apache Geronimo >>>> http://sel.as-us.falkag.net/sel?=20 >>>> cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642 >>>> _______________________________________________ >>>> hibernate-devel mailing list >>>> hib...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel >>>> >>>> >>> >>> >> >> > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ hibernate-devel mailing list hib...@li... https://lists.sourceforge.net/lists/listinfo/hibernate-devel |