Re: i want to rollback if a PersistenceBroker transaction failed

2003-10-20 Thread Danilo Tommasina
Hi Yennon, As Thomas said, if 'doc' itself is a persistent object and all the references to its related objects are correctly defined in your repository.xml, everything should rolled back automatically. However the transaction/rollback functionality is a database feature not an OJB feature,

OJB populating wrong fields in child lookup

2003-10-20 Thread Julian Exenberger
I have a table which has a compound key forming the Primary key. In this table I have collection descriptor pointing to a child table with all of the fields which make up the primary key mapped. When I run a query to get the children OJB mixes up the value of the each of the foreign keys in the

1:1 References not set

2003-10-20 Thread Boyes, Carl
Hi, I'm experiencing very strange behaviour with OJB rc4 HEAD. Basically in a multi-threaded environment when two threads retrieve the same objects within unique transactions, the references for non-prefetched relationships are not set. When only one thread is retrieving the objects everything

RE: 1:1 References not set

2003-10-20 Thread Boyes, Carl
I found the problem; locking. Thanks to the excellent documentation at http://db.apache.org/ojb/lockmanager.html. Sorry for the post. -Original Message- From: Boyes, Carl [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 11:35 AM To: OJB Users List (E-mail) Subject: 1:1

RE: Problem with anonymous keys in 1:n back-mapping (again)

2003-10-20 Thread Vincenz Braun
This is not exactly my problem. I construct my Transition object myself. Like this: Transition t = new Transition(); t.setPostStatus(postStatus); t.setAction(action); t.setPreStatus(preStatus); Now I use the broker to get a ClassDescriptor for Transitions. I iterate over the primary keys

Re: Using PersistenceBroker store with inheritance mappings

2003-10-20 Thread Christopher C. Worley
Matt, I had the same problem. Here is my post, you can read through the thread for the history. Jakob made a patch and put it in cvs, so you will need to get the latest cvs if you want to use this approach. So, try adding autoincrement to Person and build ojb from cvs.

RE: Wrong class materialized when selecting from an extent mapped to a multi-table join

2003-10-20 Thread BURT, RANDALL (CONTRACTOR)
So, changing the class descriptor for B to read something like: class-descriptor class=polymorphtest.B table=B_TABLE field-descriptor name=id column=ID jdbc-type=INTEGER primarykey=true autoincrement=true / field-descriptor name=a_id

batch mode

2003-10-20 Thread Bonnie MacKellar
I'm trying to write a utility that does batch inserts. In my code, I get the connection manager and then set the batch mode to 'true'. ConnectionManagerIF conMan = broker.serviceConnectionManager(); boolean saveBatchMode = conMan.isBatchMode(); try {

the repository verifier

2003-10-20 Thread Antonio Gallardo
Hi: I found the repository verifier at: http://db.apache.org/ojb/repository.html#the%20repository%20verifier is the repository verifier is already uptodate? I am asking because I think the website is outdated. Best Regards, Antonio Gallardo

Re: the repository verifier

2003-10-20 Thread Armin Waibel
Hi Antonio, On Mon, 20 Oct 2003 09:14:37 -0600 (CST), Antonio Gallardo [EMAIL PROTECTED] wrote: Hi: I found the repository verifier at: http://db.apache.org/ojb/repository.html#the%20repository%20verifier is the repository verifier is already uptodate? I am asking because I think the

Re: the repository verifier

2003-10-20 Thread Antonio Gallardo
Armin Waibel dijo: Combination of xml-editor and OJB xml-parsing debugging should do the job too. Hi: I was afraid of that. Thanks, for the info. :-D Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL

problems with batch-mode=true

2003-10-20 Thread Bonnie MacKellar
I am trying to insert records in batch mode. Perhaps I don't understand how this works. Here is my test code to insert 100 customers : ConnectionManagerIF conMan = broker.serviceConnectionManager(); try { broker.beginTransaction(); for (int i = 0;

Lock One Register||

2003-10-20 Thread Cesar
Hello guys, I am reposting because maybe last time I did not describe enough what my problem is. There is something I need to do through OJB and could not find yet how to do it in the documentation. I need to lock a specific entry in a table in a way that any other attempt of access would not

RE: Looking for advice on how to set up Xdoclet Ojb modules

2003-10-20 Thread Taillefer, Troy (EXP)
Hi All, I am looking for some advice on how to setup Xdoclet Ojb modules. The document says I have to build from the CVS source is it not possible to build from older more stable source code ? Another question is should the xdoclet jars included with ojb replace the Xdoclet jars ? I find the

Inheritance mapping, storing new object associated with pre-existing super object

2003-10-20 Thread Matt Mastrangelo
I'm trying to figure out how to store a new persisted object that extends a pre-existing object. For example, I have 3 classes: Person, Student, and User. Student and User extend Person. A Student object already exists, and I now want to create a User object that inherits from the same

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-20 Thread Matt Mastrangelo
Chris, Just to clarify -- are you saying it's not possible to create the User instance without also creating a new Person instance? Maybe my example was not too clear. Let me re-explain: I have a base class A with two subclasses, B1 and B2. I have already created an instance of B1 and