jUnit-Test Proxies

2003-09-17 Thread Joerg Lensing
Hi Armin, I wrote a testcase for my proxy/interface-problem. Thank you for effort joerg package de.softcon.webcontrol.test; import java.sql.Timestamp; import de.softcon.webcontrol.service.poHelper.POHelper; /** * Purpose: Diese Klasse ist die Basisklasse aller persistenten Objekte (PO) * Use:

How to Set Last Updated Time Automatically?

2003-09-17 Thread Gene Qian
Hi, I have a persistent field, say, lastUpdated(column is LAST_UPDATED_DATETIME), which is used to store last updated time of the db record. My question is: Can we use OBJ automatically set and store the field with right datetime when the persistent object was stored to DB with any field value

How to auto update a timestamp field?

2003-09-17 Thread Gene Qian
Hi, Thomas and others I have a field, say, lastUpdated (column name: LAST_UPDATED_DATETIME), which is used as an time indicator and to store the last updated time of the record, How can OJB auto set the field with new datetime when an persistent object was stored to DB with a field value modified

PlatformOracle9iImpl vs. repository.dtd

2003-09-17 Thread sclark
It appears that 'Oracle9i' needs to be added to the list of values for jdbc-connection-descriptor's platform attribute. Otherwise I don't see how to use PlatformOracle9iImpl. -steve Steve Clark Technology Applications Team Natural Resources Research Center/USGS [EMAIL PROTECTED] (970)226-9291

How to auto update a timestamp field ?

2003-09-17 Thread Gene Qian
Hi, Thomas and others I have a field, say, lastUpdated (column name: LAST_UPDATED_DATETIME), which is used as an time indicator and to store the last updated time of the record, How can OJB auto set the field with new datetime when an persistent object was stored to DB with a field value modified

Problem with byte[] to bytea mapping

2003-09-17 Thread Björn Voigt
Hi Obj_friends, I have problems with mapping of an image to an postgresql database. A byte[] attribute holds my image data. The column type is bytea. The mapping look like: ... ... If I store the object to database and get it back, the length of the byte[] is bigger than the original le

update for 1:1 relation

2003-09-17 Thread airwing
Hi, I'd like to know if it would be possible to update a reference just by updating the FK field without updating the referenced object. Example: the class Software references the class Editor with a 1:1 relation. So the class Software contains a (Editor) editor field and an (int) editorId (which

Re: Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API

2003-09-17 Thread SS_ZABIULLAH
Gustavo, Did you define the "collection-class=org.apache.ojb.broker.util.collections.ManageableArrayList" for the susDocumentos collection descriptor in repository.xml ?. Zabi. [EMAIL PROTECTED] 09/18/2003 02:32 AM Please respond to OJB Users List To: [EMAIL PROTECTED]

XDoclet and DMapImpl

2003-09-17 Thread Roman_Kurin
Hello All, I am using XDoclet to create mappings and torque files. In my classes I am using OJB implementation of Map interface DMapImpl for one of the fields. I am using @ojb.reference tag to specify DMapImpl class and XDoclet can not find it, apparently because it does not recognize it as per

Not in local manual transaction mode

2003-09-17 Thread Chip McGuill
I am seeing the following problem using OJB RC3 with JRun4 and SQLServer: [org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] INFO: Rollback was called, do rollback on current connection [EMAIL PROTECTED] [org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] ERROR: Rollback on the und

Re: Extent problem with multiple classes and tables

2003-09-17 Thread Christopher C Worley
Jakob, After looking at you test case in noticed I was not using anonymous fields to represent my fk to the super class. I changed my code to do this and it works fine. Is this the way it should be done? The only question i have is how do i get my pk to go in order. it appears all three ta

Re: Extent problem with multiple classes and tables

2003-09-17 Thread Jakob Braeuchi
hi christopher, i had to remove the patch becaus of stack overflow and other errors. jakob Jakob Braeuchi wrote: hi christopher, thanks for the patch. i checked it in and also added new testcases in class AnonymousFieldsTest to verify multilevel vertical inheritance. jakob Christopher C Wor

RE: OJB and Oracle 9ias

2003-09-17 Thread Durham David Contr 805 CSPTS/SCBE
I'm adding the following line to OJB.properties: repositoryFile=E:\ora9iAS_903\j2ee\home\applications\aep\aep\WEB-INF\cla sses\repository.xml However I receive the following exception: Caused by: java.io.FileNotFoundException: e:\ora9iAS_903\j2ee\home\repository.xml Does OJB use the repositoryF

Re: Extent problem with multiple classes and tables

2003-09-17 Thread Jakob Braeuchi
hi christopher, thanks for the patch. i checked it in and also added new testcases in class AnonymousFieldsTest to verify multilevel vertical inheritance. jakob Christopher C Worley wrote: I have finnaly found a solution to the problem with mapping more than two classes to multiple joined tab

Problem with 1 to N mapping when retrieving into an ArrayList with ODMG API

2003-09-17 Thread gfaerman
Hi all, We are using ODMG Api. When trying to retrieve a person, who has documents collection (Documents as an ArrayList), OJB fails saying it needs a org.apache.ojb.broker.util.collections.RemovalAwareCollection (pls see error below) It seems we should use a RemovalAwareCollection, or a Vecto

Re: Extent problem with multiple classes and tables

2003-09-17 Thread Christopher C Worley
I have finnaly found a solution to the problem with mapping more than two classes to multiple joined tables. Currently an exception occures becuase no primary key has been assinged to class A which does have the auto increment set to true. The reason is ojb only follows the hierarchy up one l

Re: Antwort: Re: Using different Qualifiers in DB2

2003-09-17 Thread Armin Waibel
Hi, - Original Message - From: <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 12:52 PM Subject: Antwort: Re: Using different Qualifiers in DB2 > > Hi Armin, > > your suggestion might work for my problem. I'll try it. > At which point will

Antwort: Re: Using different Qualifiers in DB2

2003-09-17 Thread lasse . lambrecht
Hi Armin, your suggestion might work for my problem. I'll try it. At which point will the different class defs (that I added via MM.addProfile) be loaded? All in "advance" or not until I'm doing a concrete MM.loadProfile(...) call. The reason why I ask this is that my class defs are about 650 kb

OJB OQL

2003-09-17 Thread liste
Hi everyone, Where could i find examples of OQL queries which use the max or the group by clause. I have some examples with the ODMG documentation but i would need examples with OQL embedded in Java... Thanks in advance, Frederic. --

Sequence Manager

2003-09-17 Thread Claudio Romano
Hello ALL, i have a little question concerning OJB + MySQL + MySQLSequenceManager: How can i get the last inserted primarykey of a table? thank Claudio Romano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,