Re: mapping the same class to multiple tables?

2004-06-27 Thread edson . richter
I have a similar solution in my job. I've done in the following way: class A { ... } class A_normal extends A { } class A_history extends A { } Only A_normal and A_history are mapped in repository.xml. So, if I need to manipulate the object, I use class A. To store a normal object, I use and

RE: mapping fields to an array

2004-06-27 Thread Morley, Liam
Thanks for the reply. It looks like I also may have to use a Rowreader to correctly store nested objects as well, so I may very well choose that approach. Thanks again. -- Liam Morley From: Thomas DudziakSent: Sun 6/27/04 4:58 AMTo: OJB Users ListSubject: Re: mapping fields to an array Morley, Li

AW: 2nd try: Subtle mapping on multiple joined tables

2004-06-27 Thread Oliver
Hi, > imo you don't need a reference pointing from C back to A. sorry, I think u got me wrong. Our C object needs a reference to A (it is a decorator), but only B_TABLE has aID as FK. thats what I meant with: First problem and question: > > OJB needs a reference from C to A, which is defined i

Re: mapping fields to an array

2004-06-27 Thread Thomas Dudziak
Morley, Liam wrote: We've got a db table with a structure like this: Name Address SSN Field1 Field2 ... Field30approx The guy who designed the java class for this (a bit more of a C-style programmer than I am) wrote a class structure like this: String name; Address address; String ssn; int[] field

Re: 2nd try: Subtle mapping on multiple joined tables

2004-06-27 Thread Jakob Braeuchi
hi oliver, imo you don't need a reference pointing from C back to A. jakob Oliver wrote: Hello, we would be very grateful for suggestions: Environment: OJB 1.0rc7 with PostgreSql We read many other postings and the docs but still have problems with the following: In a nutshell: B is abstract C exte

storing objects with nested objects

2004-06-27 Thread Morley, Liam
I have 3 separate objects: A, B, and C. A has a collection of B, where each B has a C. I can store any one of these objects individually without a problem. What I'd like to do, though, is store A, and have B and C recursively stored (and mapped to each other correctly). Currently, when I store A