Antwort: ClassCastException when storing a Date

2004-05-26 Thread BIRGITTA . MOEHRING
Hello, use java.sql.date! Good luck, Birgitta Marco Jos [EMAIL PROTECTED] Marco Jos [EMAIL PROTECTED] 26.05.2004 17:13 Bitte antworten an OJB Users List An: [EMAIL PROTECTED] Kopie: Thema: ClassCastException when storing a Date Hi. Im working under Oracle9 and have a

Re: Inheritance Problem.

2004-02-25 Thread BIRGITTA . MOEHRING
Hello Ziv, In persisting the parent class OJB has to instantiate it (using log4j you see the exact position if you set the logging to DEBUG in theOJB.properties). Since this can't be done with an abstract class, the described error occurs. Working around the same error we decided to make the

Re: Re: Casting an Object to a subclass

2004-02-16 Thread BIRGITTA . MOEHRING
Hello, thanks for considering. So far I had no problems using the (anonymous) primary key for the join of the tables. However, I changed the example so that it worked without the anonymous - attribute, like is is recommended in tutorial 3 (mapping classes on multiple joined tables). The

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello Florent, I understand this as a question about the typeB collection or the typeA collection exclusively in the C instance? Then you can't even model this in UML (or so I think), so I don't think you can in OJB. The only workaround I know without having two collections in C is a

Re: Mapping question

2004-02-16 Thread BIRGITTA . MOEHRING
Hello again, If you want C.foreignId = A.idA then the 1:n - relation between C and A is the other way round: C would be the n-class. But if you simply want C having two collections as attributes, it is described in tutorial 3, mapping 1:n relations. Was that the answer? regards, Birgitta

Re: Re: Casting an Object to a subclass

2004-02-16 Thread BIRGITTA . MOEHRING
Gotcha! I have to define the child in the parent class as an extend! Now it all works just fine (even with anonymous keys ;-) )! Thank you all for OJB, this wonderful product! Birgitta

Memory leak? (See WHY OJB SPEND MORE AND MORE TIME TO STIRE OBJECTS from ghielard, 2003-12-04)

2004-01-16 Thread BIRGITTA . MOEHRING
Hi, I also saw my application slowing down with the number of inserted objects. I am using the ODMG layer. I have an application which has to insert different sets into different tables; each set is in its own file. Each time after inserting a set of objects I set every known reference to