OJB 1.0.4 ODMG implementation

2010-02-15 Thread Längerich Bernd
Hi, I just played around with ODMG and tried to execute the following OQL: "select x from myClass where attribute is not in ( select distinct y.id from anotherClass )" During OQLQuery q.create(oql) OJB writes a message to stderr with "unexpected token (select)" and throws an Exception

AW: OJB Development Activity

2008-09-04 Thread Längerich, Bernd
Armin wrote: > Sorry for the delay. I took a few "sabbatical weeks" from OJB > to spend > more time with my (newborn) daughter and currently I have > some problems > with my eyes, which makes it difficult to work on OJB. Armin, congrats to your newborn family member, all the best to all of you

AW: what's with OJB Project?

2007-08-23 Thread Längerich, Bernd
Armin Waibel writes: > Well, it depends on the community. Currently it seems that only a few > people are able to (interested in) spend time for OJB. I will > continue > my work on OJB. I would like to say thank you for your efforts. I would also like to offer my best to support OJB in future

AW: Question regarding metadata handling in ojb 1.0.4

2007-07-27 Thread Längerich, Bernd
Armin Waibel wrote: > Since ClassB is an "extent" of ClassA the merge of the repositories > isn't enough. The merge method is intended to merge/add new classes > without dependencies to already registered classes. > You could try to use the ClassDescriptor.addExtent(...) method to > register a

Question regarding metadata handling in ojb 1.0.4

2007-07-26 Thread Längerich, Bernd
Hi, I am trying to find some information regarding metadata merging in the following scenario: We have a base application with some classes, db tables and a repository_user.xml that describes the mapping. Lets say we have a base class BasePersistentClassA and some classes that are based which

AW: SequenceManagerHighLowImpl

2007-02-01 Thread Längerich , Bernd
Bernd "Ingrid" Laengerich wrote: > OK, I played around a little bit and overwrote the afterStore > method (empty implementation, however it never gets called!? > What am I missing? I placed a breakpoint in my code, but it > never reaches it. OK, searching around a little bit, I found in JdbcAcc

AW: SequenceManagerHighLowImpl

2007-01-31 Thread Längerich , Bernd
Hi Armin, thanks again for your response. Armin wrote: > Längerich wrote: > > Is it sufficient/possible to overwrite the afterStore() > method of the > > sequence manager? > > Yep it's possible. Assume you want to lookup the > HLSequence-object for > the current used (fixed) field and invalid

SequenceManagerHighLowImpl

2007-01-30 Thread Längerich , Bernd
Hi, I have some problems with OJB (PB-API) and the sequence manager. I derived a new sequence manager from the shipped HighLowImpl, that checks for every grab size with SequenceManagerHelper.getMaxForExtent() for the max id of the field. This works fine with data added externally, but I have a

AW: Problem/misunderstanding with ObjectCache, multiple databases and ObjectModification, 1.0.4

2007-01-16 Thread Längerich , Bernd
Hi Armin, thank you for your fast response. Armin Waibel writes: > You are right, OJB find the object in the cache (because you operate > with the same objects on different DB's using a shared cache) and > indicate to update the object instead of insert. > > Do you really need a shared cache

Problem/misunderstanding with ObjectCache, multiple databases and ObjectModification, 1.0.4

2007-01-16 Thread Längerich , Bernd
Hi, I have some problems understanding (and using) the concept of the cache when using multiple databases and determining the object modification level at the store method. Assume we have two databases A and B with one being the default and one being the backup database. Both connections are c

Re: Merging data from two data bases

2006-12-12 Thread Längerich , Bernd
"Ingrid" Längerich writes: > The code I tried is like this: OK, I found out that Iterator it = masterbroker.getReportQueryIteratorByQuery(masterquery); Collection taids = new Vector(); while (it.hasNext()) { Object obj = ((Object[])it.next())[0]; taids.add(obj)

Merging data from two data bases

2006-12-12 Thread Längerich , Bernd
Hi, given is a master data base and a backup data base. All entries are stored to the master data base and to the backup. If anything fails (computer crashes) at startup I want to merge the data from the backup with the data of the master database. The code I tried is like this: masterb

1.03 PB-API broker.deleteBy() and QueryByCriteria problem

2006-08-25 Thread Längerich , Bernd
Hi, a criteria with path expressions like in the OJB queries reference guide example (http://db.apache.org/ojb/docu/guides/query.html#Query+by+Criteria) does not work for me with broker.deleteByQuery(q). Using Microsoft SQL Server, the resulting statement of the example Criteria crit = new Crit