Anonymous Keys -- wrong value when after db search

2004-03-01 Thread Sylvain Pereira
Hi all, I searched the Archive list before asking this. I tried the http://scarab.werken.com/ site as told in the release notes but I got a proxy server error. (OJB 1.0rc5/Persistence Broker - MySQL) I use anonymous keys so I don't have to add a "primary key" attribute in my business classes. It

Re: [OTM] collection-descriptor issue with latest from head.

2004-03-01 Thread Oleg Nitz
Hi David, Can you give at least a small code snippet, please? Regards, Oleg On Monday 01 March 2004 15:12, David Le Strat wrote: > Hello, > > I am having the weirdest issue, any suggestion; > > Basically, I want to add a collection of properties to > a node. > > In my test, I have only 1 proper

Re: [OTM] can not delete from dependent collection

2004-03-01 Thread Oleg Nitz
Hi Joerg, I hope now issue 1 is solved too ;-) Regards, Oleg On Monday 01 March 2004 14:17, Joerg Heinicke wrote: > Oleg Nitz ukr.net> writes: > > Hi Joerg, > > > > I think I have solved all the problems that you mentioned, and even more > > I confirm that otm-dependent="true" must be used wit

AW: AW: Extent

2004-03-01 Thread Dirk Manske (Service Respond)
thanks for the answer Tom. I need more information about the ojb.modify-inherited tag. You say I could control which attribute will be picked up. How? Here is the scenario: The BaseClass holds all the "common attributes". For some objects (extended from BaseClass) all these common attributes have t

RE: [OTM] bi-directional 1:n not working

2004-03-01 Thread Weaver, Scott
> Is appId field in the PortletDefinitionImpl populated when you retrieve > it (as opposed to the app reference)? Yes, I verified that the correct value is being placed appId on materialization. Regards, ** | Scott T Weaver | | <[EMAIL PROTECTED]>

RE: [OTM] bi-directional 1:n not working

2004-03-01 Thread Coup, Robert Muir
I'm having a great day, so ignore the previous post. :P Is appId field in the PortletDefinitionImpl populated when you retrieve it (as opposed to the app reference)? Rob :) > -Original Message- > From: Weaver, Scott [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 March 2004 10:49 a.m. >

RE: [OTM] bi-directional 1:n not working

2004-03-01 Thread Coup, Robert Muir
Hi, Could you send the relevant parts of your repository.xml? Rob :) > -Original Message- > From: Weaver, Scott [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 March 2004 10:49 a.m. > To: 'OJB Users List' > Subject: [OTM] bi-directional 1:n not working > > > > I have a PortletApplicatio

[OTM] bi-directional 1:n not working

2004-03-01 Thread Weaver, Scott
I have a PortletApplicationDefinitionImpl contains n PortletDefinitionImpl s. Each portlet definition has a reference back to its parent PortletApplicationDefinition. PortletApplicationDefinitionImpl works correctly and its collection of PortletDefinitionImpls is populated. However, anytime I re

Re: Criteria.setClassPath - the saga continues

2004-03-01 Thread Jakob Braeuchi
hi charles, i think i found the problem with the multi-segment path: in SqlQueryStatement#getTableAlias there are two locations calling getItemClassDescriptor: cld = getItemClassDescriptor(ord, attr); the argument attr contains the last segment of the path only. change these li

Re: object factories

2004-03-01 Thread Charles N. Harvey III
These books look good. Think I'll walk down to the B&N after work and browse through them before I buy. And yes, I am merging the lines between repository and factory, but that was sort of the point. I don't want any free floating objects around. I want everything to be coming from the DB, sinc

Re: Criteria.setClassPath - the saga continues

2004-03-01 Thread Jakob Braeuchi
hi charles, i checked the testcase dealing with setPathClass. they all work with single segment path only. have you tried to debug the problem ? jakob Charles Anthony wrote: Hi all, Following my query last week, I've botched my query to use the ojbConcreteClass directly. I now have a problem

RE: object factories

2004-03-01 Thread Shane Mingins
> -Original Message- > From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 March 2004 8:35 a.m. > To: OJB Users List > Subject: object factories > > Hey all. > Currently I don't allow objects to be created with new. They have to > go through my Factory class to create

object factories

2004-03-01 Thread Charles N. Harvey III
Hey all. Currently I don't allow objects to be created with new. They have to go through my Factory class to create a new object. I actually create a bunch of methods like, selectMyObject, insertMyObject, updateMyObect, selectMyObjects (returns collection) and createMyObject. I also create a cri

RE: [OTM] invalidating cache causes NPE on next collection query

2004-03-01 Thread Weaver, Scott
Actually, this stack trace from sys out might prove more insightful. p.s. I am using a CVS HEAD version from yesterday. java.lang.NullPointerException at org.apache.ojb.broker.accesslayer.CollectionPrefetcher.associateBatch ed(CollectionPrefetcher.java:190) at org.apache.ojb.broke

[OTM] invalidating cache causes NPE on next collection query

2004-03-01 Thread Weaver, Scott
After invalidating an object then trying to retrieve the object via a query, I get a NullPointerException. As a soon as remove the invalidation, the test runs without exception. Any ideas? org.apache.ojb.broker.PersistenceBrokerException: java.lang.NullPointerException at org.apache.ojb.

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Armin Waibel
Robert S. Sfeir wrote: Armin Waibel wrote: I can try to do that. My CVS is from Friday night, is that too out of date? No, should be ok. Do all PB-api test pass on your local system when run OJB test suite (ant junit) against default DB (hsql)? Nope, some fail, but it doesn't look like t

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Robert S. Sfeir
Armin Waibel wrote: I can try to do that. My CVS is from Friday night, is that too out of date? No, should be ok. Do all PB-api test pass on your local system when run OJB test suite (ant junit) against default DB (hsql)? Nope, some fail, but it doesn't look like they're in the same area I am

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Armin Waibel
I can try to do that. My CVS is from Friday night, is that too out of date? No, should be ok. Do all PB-api test pass on your local system when run OJB test suite (ant junit) against default DB (hsql)? regards, Armin R - To un

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Robert S. Sfeir
Armin Waibel wrote: Hi Robert, Robert S. Sfeir wrote: Armin? Any other ideas on this? I think it might be a serious bug we need to nail before 1.0. My object does come back, but no values are being set. Any help would be appreciated. hmm, as I said in my previous mail all (retrieveRefere

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Armin Waibel
Hi Robert, Robert S. Sfeir wrote: Armin? Any other ideas on this? I think it might be a serious bug we need to nail before 1.0. My object does come back, but no values are being set. Any help would be appreciated. hmm, as I said in my previous mail all (retrieveReference) tests pass with l

Re: [OTM] collection-descriptor issue with latest from head.

2004-03-01 Thread David Le Strat
Hello, I am having the weirdest issue, any suggestion; Basically, I want to add a collection of properties to a node. In my test, I have only 1 property: Properties: [[nodeId, 5], [propertyKeyId, 21], [propertyKey, [EMAIL PROTECTED], [propertyValue, true], [creationDate, 2004-03-01 10:03:14.812

Re: Changing AutoRetrieve on the fly

2004-03-01 Thread Robert S. Sfeir
Armin? Any other ideas on this? I think it might be a serious bug we need to nail before 1.0. My object does come back, but no values are being set. Any help would be appreciated. Thanks R - To unsubscribe, e-mail: [EMAIL PR

Re: [OTM] can not delete from dependent collection

2004-03-01 Thread Joerg Heinicke
Oleg Nitz ukr.net> writes: > Hi Joerg, > > I think I have solved all the problems that you mentioned, and even more > I confirm that otm-dependent="true" must be used with auto-update="false". > Thank you very must for the ideal bug report! > > Regards, > Oleg Hello Oleg ... and also the ot

mysql insert problem

2004-03-01 Thread Guido Beutler
Hello, I'm using ojb rc5 with mysql 4.0.18 under linux. OJB runs inside of a jboss-3.2.3. I have a sample table : create table a ( id int not null, ref char(3) not null references b, primary key (id,ref) ) create table b ( ref char(3) not null, primary key (ref) ); at the corresponding class I hav

Reference Descriptor Question

2004-03-01 Thread Ziv Yankowitz
Hi Folks, please help with an urgent problem. we have the following mapping defined: Is it possible to update only Test2.someValueFromA attribute causing A_TEST1 table to be updated. thanks.

Criteria.setClassPath - the saga continues

2004-03-01 Thread Charles Anthony
Hi all, Following my query last week, I've botched my query to use the ojbConcreteClass directly. I now have a problem that the generated SQL for the following sample is incorrect : Criteria criteria1 = new Criteria(); criteria1.addEqualTo("outPayment.agreement.ojbConcreteClass", "aquarius.agreem