There must be something I don't iunderstand. Here is my RowReader :
public Object readObjectFrom(Map row) throws
PersistenceBrokerException {
Object result = super.readObjectFrom(row);
if (result instanceof Car){
Car car = (Car) result;
Hello,
I have two types of persistent objects in my application : objects that are
stored in a RDB and objects that are managed from an other application (for
instance, in my environment persons and adresses are managed in a legacy
application developed in Natural/Adabas). The objects of the
Thank you for the quick answer. I defined a custom RowReader and it works
almost exactly like I want to.
I would be fully happy if I could cache the object in the
PersistenceBroker's cache. Is there a way to get a reference to the cache
from the RowReader ?
Stefano
Yes, I know that, but if I am in my custom RowReader extending
DefaultRowReader, how can I get a reference to the PersisitenceBroker ? In
other words, is there a way to navigate OJB from RowReader.readObjectFrom()
to the PersistenceBroker ?
Stefano
|-+---
|
No, I don't thik so, since the object is not instantiated by OJB. If I take
again the example of the Car and its Owner, the Car object is instantiated
by OJB, because the data is stored in the RDBMS and retrieved using the
PersistenceBroker.
The Owner object must be read from an external
Hello everybody,
I am trying to implement a function with the ODMG API and Struts.
The model is a 1:n relationship between objects of two types, let's say a
class BankAccount that owns a collection of BankTransactions. In a first
page the user chooses an account to manage, then the
Hi Oleg
here are the informations.
First, the data before the test (I include only the ids, the tables are
quite long):
ID ID_DOSSIER
totoMon Jun 14 08:35:27 CEST 2004 2870475
totoWed Jun 09 17:05:30 CEST 2004 2870475
510183102
Yes, I am using ODMG.
I have downloaded RC7 this morning and tried again. The collection proxy
works fine, but I still have problems with the reference proxies. Here is
the code snippet I am executing :
public void testModificationDirect() {
String idDossier =
Hi Oleg,
I'll send my configuration, but I am quite busy right now and I have to
isolate the test case from my system. I'll do that nex week.
Stefano
|-+---
| | Oleg Nitz |
| | [EMAIL PROTECTED]|
| |
Hello,
I have a problem : even if I define proxy for a connection, OJB reads the
linked objects immediately.
Explanation : I have a class Dossier, wich is the entry point of my
application. This class is mapped to a DB2 table called TMPDOSSIER. Each
dossier has a collection of Prestation.
Thank you for the quick answer Tom,
I looked at the URL you sent me, but I dont know enough the internals of
OJB to understand the message. I went a little further : I tried to get the
Persistence Broker from the transaction and to execute a good old OJB
QueryByCriteria : the late binding
Hello,
I did not manage to declare a bug in the bug tracking systme, so here it
is.
I have a 1:n relationship between two java classes stored in two different
db-tables (let's say a classical Invoice - Lines structure). I defined
dynamic proxies on the Line class. When I read an invoice by
be easy to test if the data has been updated by the user or not.
Unfortunately, I don't know how to be informed of the materialisation of
the objects.
Has someone a hint ?
Stefano Juri
-
To unsubscribe, e-mail: [EMAIL PROTECTED
13 matches
Mail list logo