[OJB-developers] AW: [Fwd: RE: next release]
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-28 09:03:50
|
Hi Matthew, sorry for the last mail, I just pressed "send" before typing anything. > > within OJB, would it be possible to use the metadata to find > all objects > that could reference an object of a certain class. > Yes, The metadata layer is meant for such computations! By ojb.broker.metadata.DescriptorRepository.getInstance().iterator() you can obtain an Iterator over all ClassDescriptor objects in the Repository. You can walk through all ClassDecsriptors and check if they have ReferenceDescriptors or CollectionDescriptors pointing to your class. cu, Thomas > for instance. I have an object com.foo.SomeObject with ID=5 > > I want to write some generic code that goes through all the class > mappings and finds anyplace where another object has a mapped > instance > of SomeObject, then I'll generate the OQL to do a query to > see which of > that object references a SomeObject with ID=5. > > thanks. > Matthew > > -----Original Message----- > From: Thomas Mahler [mailto:tho...@ho...] > Sent: Wednesday, March 27, 2002 1:33 PM > To: Matthew Baird; ojb > Subject: Re: next release > > > Hi Matthew, > > > <snip> > > > > > There is already a JTA implementation for the PersistenceBroker API > > contributed by another JBOSS / OJB user. It's working but > it's currently > > not part of the distribution. It also won't be included in the next > > release. If you like I can post you Armins's stuff! > > > > > >>Please do. > > > attached you'll find Armin's code for JTA Integration. He > even included > a sample ejb "OfferingManagerBean.java", which uses his JTA > infrastructure. > > I like his well structured approach. There are some unresolved > references in his code (e.g. to a Factory-class de.cal.base.Creator), > but these can be replaced without too much efforts. > > > >> > > > > Jesper is working on a proposal for a complete JCA > integrated solution. > > We will take this as the base for further developments > towards JCA / JTA. > > > > But I can't give you any estimation when this will be finished. > > > > We want to make OJB the definite O/R solution for JBOSS! > That's why we > > take the JCA integration so serious. > > > > > >>You should talk to Oleg Nitz. I'm sure they would love to have a > JBossJDO solution, and yours could be it!. > >> > > > Oleg is from the JBOSS team? Do you have his email address? > > > > > > If you had to guess on a 1.0 release when would that be? > > > > > There are only very few features missing for 1.0. > The biggest open issue is a redesign of the repository dtd. > Once this is finished we are at 0.9 > From 0.9 to 1.0 I want to have some kind of frozen zone > where only bug > fixes and documentation may be added. > > The JTA / JCA stuff is not scheduled for 1.0 but if we can finish it > quickly we will of course include it. > I want to have 1.0 released soon. May or June might be a > realistic estimate. > > > > If we pursue this, we are going to write a "castor to ojb" mapping > file translator that I'd love to contribute to help people move from > Castor to OJB. > > > > > Yes, that could be helpful for several people ! > > cu, > > > Thomas > > > > |