Le jeu 09/01/2003 � 14:48, Kevin Viet a �crit : > Hi I've got a question about the online faq > > In faq, it is said that we can query the persistenceBroker from an ODMG > Transaction using the criteria API, but the most important thing is to > lock in READ mode the objects that are the result of the query . > > I think this is not compatible with a class that have a > collection-descriptor with the proxy attribute set to true ... > > In fact when u lock in READ mode the object resulting of the Criteria > query, the ODMG transaction (using implicit locking) has to iterate over > object's collection and lock the contained objects. So if a colletion is > a proxy this will end up of retrieving the whole objects > > Am I ok? or missed something ? ... > I really want to use the proxy attribute, am I forced to change the way > I query the perisistenceBroker (using real OQL) ? > > > Thanx in advance ....
Things seems ok if I set the implicitLocking to false, what are the consequences of doing a such thing for when using the ODMG api ? ??? -- Kevin Viet <[EMAIL PROTECTED]> ActiVia Networks -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
