LockMapClass and Clustered Environments

2004-03-11 Thread Luis Cruz
Hello, According to the OJB.properties example file available at: http://db.apache.org/ojb/OJB.properties.txt in the locking section, it says that when running OJB on multiple concurrent clients, the LockMapClass property should be set to: org.apache.ojb.odmg.locking.PersistentLockMapImpl

OJB XDoclet module Missing element class ref on @ojb collection not handled

2004-03-11 Thread Laurie Harper
[I tried to submit this as a bug, but a Scarab bug[1] seems to be preventing me :-( ] Using the xdoclet stuff packaged in db-ojb-1.0.rc5-contrib: If the element-class-ref attribute is missing from the @ojb.collection tag, an internal error occurs which is not handled and reported clearly. You

Re: OJB and OSCache.

2004-03-11 Thread Jason McKerr
Hi Andrew, I don't actually know if the OJB gang has considered the changes your referring to. The people to ask are probably Jakob, Armin, or Thomas. As for the Sybase thing, you might submit that separately in an email with [BUGFIX] in the subject as it might get ignored in this thread. J On

Re: Still no luck with this query

2004-03-11 Thread jeichels
Sorry for the confusion. I tried to abbreviate to make it easier to read. In the end, I want to do this query: SELECT r.msid, r.rtitle, r.brief FROM rstep1 r, serviceinterest si WHERE ((si.targetmsid = 101) AND (si.interestmsid = r.msid)) Based on these

Re: OJB and OSCache.

2004-03-11 Thread Andrew Wilson
Thank you Jason, that fixes it. My friend (who was running on Linux) had found the fix and forgotten about it. Apologies. A couple more questions : - In the ODMG Implementation I wrote (for a bank in London a couple of years ago) we were able to make a number of optimizations. 1. Contract to r

Re: OJB and OSCache.

2004-03-11 Thread Jason McKerr
Also, I was able to duplicate your error message using an incorrect constructor. I'm not sure why it would have worked for you on linux. Unfortunately the constructor on the HOW-TO that I wrote is incorrect and out of synch with the OJB version API. The API Changed, and I forgot to tell Armin to

ejb hot deploy

2004-03-11 Thread Guerrero, Axel
I'm using JBoss 3.2.2 and OJB rc4 deployed as as sar (everything deploys ok). I also have an application ejb jar with session beans that use OJB.. (note: this is a jar not an ear).. everything deploys fine when JBoss is started. queries ok, resultsets ok.. my problem is whenever i hot deploy a n

Re: OJB and OSCache.

2004-03-11 Thread Jason McKerr
Can you post your com.db.ged.ojb.util.ObjectCacheOSCacheImpl file? as well as your oscache.properties file? Jason On Thu, 2004-03-11 at 14:50, Andrew Wilson wrote: > Ive been using OJB for a while now and am very impressed (I once wrote an ODMG > implementation, but thats another story). > > I

Mapping composite collections

2004-03-11 Thread Laurie Harper
I'm a bit at a loss on this one :-) I have a class whose properties are collections of entries defined by an inner class. I can see how to map the inner class onto a database table directly, but not how to either map or populate the outer class. Here's a trimmed down sample of the code I have:

OJB and OSCache.

2004-03-11 Thread Andrew Wilson
Ive been using OJB for a while now and am very impressed (I once wrote an ODMG implementation, but thats another story). Im having a problem, configuring OSCache with OJB Im using : - OJB rc5 - OSCache 2.0.2 and included Javagroups Ive followed the instructions and on Linux everything works fin

Re: Problems using Batch Mode with JDK 1.2 (Bug?)

2004-03-11 Thread Oleg Nitz
Hi Rouven, My idea was wrong, PersistenceBrokerImpl.java doesn't have conditional compilation directives, so line numbers in the stack trace should match the source file. Please, look at your file PersistenceBrokerImpl.java and tell me what is in the line 1299 and around. JDK shouldn't show wro

Re: Compound Primary Key foreign key references

2004-03-11 Thread Jakob Braeuchi
hi wayne, Wayne Kidd wrote: Although this is, in fact the behavior of OJB, It seems that the right behavior should be to describe the referenced tables primary key in the sequence of the primary key definition. That is, if the primary key constraint gives the order as x,z,y then the referenci

Question about Sequences

2004-03-11 Thread Christian Eugster
Maybe someone can help me. I run two databases (both mysql) concurrently (one on a server, the other locally to ensure, that the program may run, even the server is down). I want the records of some tables to be identic on both databases (even their primary keys). Every table has a Long (BIGINT)

Re: Still no luck with this query

2004-03-11 Thread Jakob Braeuchi
hi john, you have a 1:1-relationship pointing from RServiceInterestVO to ServiceInterestVO, is this correct ? a similar relationship can be found in the samples (ProductGroup to Article). the pk of RServiceInterestVO is used as fk to ServiceInterestVO in your repository. but the comment says it

Re: Problems using Batch Mode with JDK 1.2 (Bug?)

2004-03-11 Thread Oleg Nitz
> You're right I over looked that about the line number in the stack trace. so > I retried the compilation to be sure having the right version in the classpath. > which gave me the same result. so i switched to jdk 1.2.2_017 to be sure having > the newest 1.2 jdk available -> same result. Oh, I t

Re: Problems using Batch Mode with JDK 1.2 (Bug?)

2004-03-11 Thread Rouven Oberholzer
Hi Oleg and all, Thanks for your response. You're right I over looked that about the line number in the stack trace. so I retried the compilation to be sure having the right version in the classpath. which gave me the same result. so i switched to jdk 1.2.2_017 to be sure having the newest 1.2 jd

Re: Still no luck with this query

2004-03-11 Thread jeichels
Thank you for responding Jakob. Again this is the query I would like: SELECT r.msid, r.rtitle, r.brief FROM rstep1 r, serviceinterest si WHERE ((si.targetmsid = 101) AND (si.interestmsid = r.msid)) Below was my first of many attempts to solve this problem,