Hi,
i want to use OJB with EJB and have some problems. First of all I don't
know exactly how to develop EJB with OJB. Have I to
1. put my OJB code in Session Beans; do everything in the Session
Beans and generate one Facade EJB that the client contacts => in this case
I get exceptios when
hi robert,
imo you can solve it with the help of a subquery referencing the enclosing
query. please have a look at QueryTest#testSubQuery4().
hth
jakob
Coup, Robert Muir wrote:
Hi,
One problem solved - one to go.
GO is a group. A group has a collection of members (which is a
superclass of gro
Hi again,
if you run into trouble, you maybe need to patch PlatformDB2Impl class,
because there was a check in of a fix by Matthias Roth after rc5.
Index: PlatformDb2Impl.java
===
RCS file:
/home/cvs/db-ojb/src/java/org/apache/
thank you both. you helped me a lot in understanding ojb. I'll give it a
try.
Dirk
-Ursprüngliche Nachricht-
Von: Armin Waibel [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 15. Januar 2004 18:06
An: OJB Users List
Betreff: Re: AW: AW: AW: AW: Two 1:N mappings to one table
Hi Dirk,
Hi Dirk,
if you use Identity columns from database you can't use the default
SequenceManager (SequenceManagerHighLowImpl). Have a look in
http://db.apache.org/ojb/sequencemanager.html#nativeSequenceManager
> can all do for me. In the repository-user.xml I set every pk column with
> primarykey="t
No! You misunderstood me.
Declare the PK's, FK's etc in the database. Do not abandon good
database practices for OJB -- particularly as never know what programs
will access the DB directly in the future.
The DB managed auto-increment is the thing that is causing OJB to
hiccup on you, I susp
hm. our db2 database tables are configured with an autoincrement for the
primary keys by default. (for exampl: activityId INTEGER NOT NULL GENERATED
BY DEFAULT AS IDENTITY (STARTS WITH 1, INCREMENT BY 1, NO CACHE, PRIMARY
KEY). this is my first time using ojb. Meanwhile I get aware of what ojb
can
Ah hah! You are allowing DB2 to add the ID via a trigger, aren't you?
OJB doesn't play super nicely with the database doing that for it
behind the scenes, unfortunately. If you are allowed, try using one of
the OJB auto increment modules. I suggest the one that pulls from a db
sequence if that
Unfortunately I cannot provide a testcase for this. But in general, after I
stored the activity with pm.store(venture), the second operation
pm.store(person) should automagically update activity and not save it as a
new entry, right? Or will it be only updated, if the activityId is known?
Because I
Hi Tadeus,
It's my stuff, I shall look at this.
Oleg
-Original Message-
From: Tadeus Garsva <[EMAIL PROTECTED]>
To: OJB Users List <[EMAIL PROTECTED]>
Date: Thu, 15 Jan 2004 14:53:46 +0200
Subject: Re: Proxy prefetching limit in Collection and Reference descriptors.
> hi Jakob,
> Thank
hi Jakob,
Thanks for answer. But I think there is other logic.
In ojb.properties I have SqlInLimit set to 200, but when prefetching of
proxy collection is performed I found that field _limit in class
PBCollectionProxyListener (inner of class QueryReferenceBroker) field
m_ProxyPrefetchingLimit in
Hi,
I have a quite strange problem: I am trying to start an ojb-based
application via ant and the commons-laucher tool. I have struggled some
time with setting the classpath correctly and it works now fine - except
for one ugly thing: I had to pass an ABSOLUTE path in the OJB.properties
-file
Hi,
just a question about thread-safty.
i use OJB to store business-objects in a webapp.
in my struts-actions i use my own class
called "OJBDelegate".
Its methods are not! delcared with synchronized.
now my question:
is ojb threadsafe?
if two or more "struts-actions" call the same
method of my o
Keep cool. When working with a community, is normal to get some messages of
all kind.
AFAIK, I've not worked with IBM DB2, but all databases has a TIMESTAMP like
data type, and some has no capabilities for millisecond (as example, some
databases like MS SQL Server store with 1000/3 milliseconds pre
Hi Zhe,
ZZZ Liu wrote:
Hi, all
I have a problem when I try to insert an object in a
data base table and then try to retrieve all records
from that table. I use the same persistence broker for
the above two operations.
I found that if I don't
commit the transaction after save, the retrieved
record
First of all did you understand what my mail is for? If I don't know
what OJB is for I might not have even tried to test that one and not
wasted your valuable time. There are four points in my mail and all are
valid ones. If you don't know what I meant don't even try to answer.
Thanks
-Origi
Hi,
Have you try to use TIMESTAMP for your jdbc-type,
you can try like this :
The class for the conversion is already define in OJB.
Hope that help.
-Message d'origine-
De : eric barbe [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 15 janvier 2004 09:22
À : OJB Users List
Objet : RE: Date p
Does somebody have an idea ?
Thanks
Éric
-Message d'origine-
De : eric barbe [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 janvier 2004 17:44
À : [EMAIL PROTECTED]
Objet : Date problem ?
Hi everybody,
I'm working under Oracle 8i.
In my repository_user.xml, i have amongst other thing
Hi All,
I'm having some fun with Optimistic locking. Specifically, I'm trying to
delete a series of objects contained in a collection, and getting the
following error.
org.odmg.LockNotGrantedException: Object has been modified by someone
else
at org.apache.ojb.odmg.ObjectEnvelopeTable.com
Hi, all
I have a problem when I try to insert an object in a
data base table and then try to retrieve all records
from that table. I use the same persistence broker for
the above two operations. I found that if I don't
commit the transaction after save, the retrieved
records won't include the new
20 matches
Mail list logo