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,
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
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
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
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
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.
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
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
{
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
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
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
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;
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
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
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
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
16 matches
Mail list logo