Re: Inheritance Mapping

2007-03-07 Thread Armin Waibel
min Waibel <[EMAIL PROTECTED]> 03/06/07 02:29 PM Please respond to "OJB Users List" To OJB Users List cc Subject Re: Inheritance Mapping I think you mixed up two different inheritance strategies. table per class file:///E:/dev/db-ojb-1b/ojb/doc/docu/guides/advanced-t

Re: Inheritance Mapping

2007-03-07 Thread Adam Brons
bjConcreteClass specified class. So the Company class would contain a collection of Employee and Manager classes. Armin Waibel <[EMAIL PROTECTED]> 03/06/07 02:29 PM Please respond to "OJB Users List" To OJB Users List cc Subject Re: Inheritance Mapping I think yo

Re: Inheritance Mapping

2007-03-06 Thread Armin Waibel
Hi Adam, Adam Brons wrote: Hey Everyone, I have a question about mapping inheritance. What I'm having trouble doing is reading and updating a collection of a subclasses. It writes the Manager entry with the Manager => Employee mapping without problem. Unfortunately when I read in the Compa

Inheritance Mapping

2007-03-05 Thread Adam Brons
Hey Everyone, I have a question about mapping inheritance. What I'm having trouble doing is reading and updating a collection of a subclasses. It writes the Manager entry with the Manager => Employee mapping without problem. Unfortunately when I read in the Company class and it loads a colle

Solution: Problem (Bug?): Inheritance / Mapping Classes on Multiple Joined Tables / Primary Key is _NOT_ auto-increment

2004-07-28 Thread Sven Woltmann
: Donnerstag, 29. Juli 2004 02:00 To: [EMAIL PROTECTED] Subject: Problem (Bug?): Inheritance / Mapping Classes on Multiple Joined Tables / Primary Key is _NOT_ auto-increment Hello, I have a problem with an inheritance hierarchy, mapped on multiple joined tables, where the primary key is _not_ a

Problem (Bug?): Inheritance / Mapping Classes on Multiple Joined Tables / Primary Key is _NOT_ auto-increment

2004-07-28 Thread Sven Woltmann
Hello, I have a problem with an inheritance hierarchy, mapped on multiple joined tables, where the primary key is _not_ auto-increment. The problem is: OJB always stores "0" as the value for the primary key field, although I defined another value. To make this easily reproducable, I c

Re: Fw: Problem with inheritance mapping

2004-02-20 Thread Jakob Braeuchi
hi peter, i committed the fix. jakob Peter Wieland wrote: Hi Jakob, the code changes seem to work well. Thank you very much. I'll tell if further problems occur. Thank you for your help, Peter hi peter, please replace the method addJoin in SqlQueryStatement with the following: priv

Re: Fw: Problem with inheritance mapping

2004-02-19 Thread Peter Wieland
Hi Jakob, the code changes seem to work well. Thank you very much. I'll tell if further problems occur. Thank you for your help, Peter > hi peter, > please replace the method addJoin in SqlQueryStatement with the following: > private void addJoin(TableAlias left, Object[] leftKeys, Tabl

Re: Fw: Problem with inheritance mapping

2004-02-18 Thread Jakob Braeuchi
hank you once again, Peter --- HIER BEGINNT DIE WEITERGELEITETE NACHRICHT -- Von: [EMAIL PROTECTED] (Peter Wieland) Datum: 16.02.2004, 17:29:33 Betreff: Problem with inheritance mapping Hi everyone, I have two entity classes AddressImpl and PersonAddressImpl, P

Re: Fw: Problem with inheritance mapping

2004-02-18 Thread Jakob Braeuchi
Von: [EMAIL PROTECTED] (Peter Wieland) Datum: 16.02.2004, 17:29:33 Betreff: Problem with inheritance mapping Hi everyone, I have two entity classes AddressImpl and PersonAddressImpl, PersonAddressImpl extending AddressImpl (below the interesting parts of my Mapping). A third class - Garaga

Re: Fw: Problem with inheritance mapping

2004-02-18 Thread Peter Wieland
rhaps you do not consider it a problem?) and if anyone has >> any >> suggestions how to proceed in the given case. >> >> Thank you once again, >> >> Peter >> >> >> --- HIER BEGINNT DIE WEITERGELEITETE NACHRICHT >>

Re: Fw: Problem with inheritance mapping

2004-02-18 Thread Jakob Braeuchi
any suggestions how to proceed in the given case. Thank you once again, Peter --- HIER BEGINNT DIE WEITERGELEITETE NACHRICHT -- Von: [EMAIL PROTECTED] (Peter Wieland) Datum: 16.02.2004, 17:29:33 Betreff: Problem with inheritance mapping Hi everyone, I have two

RE: Problem with inheritance mapping

2004-02-18 Thread Gelhar, Wallace Joseph
, 2004 7:58 AM To: [EMAIL PROTECTED] Subject: Fw: Problem with inheritance mapping Hi, I posted the message below two days ago, and from my experience I would say if there is no reply within two days, there's very few chance to have an answer at all, that's way I annoy you one more time

Fw: Problem with inheritance mapping

2004-02-18 Thread Peter Wieland
Thank you once again, Peter --- HIER BEGINNT DIE WEITERGELEITETE NACHRICHT -- Von: [EMAIL PROTECTED] (Peter Wieland) Datum: 16.02.2004, 17:29:33 Betreff: Problem with inheritance mapping Hi everyone, I have two entity classes AddressImpl and PersonAddressImpl, Pe

Problem with inheritance mapping

2004-02-16 Thread Peter Wieland
Hi everyone, I have two entity classes AddressImpl and PersonAddressImpl, PersonAddressImpl extending AddressImpl (below the interesting parts of my Mapping). A third class - GaragaeImpl - holds a reference to an AddressImpl (might be an AddressImpl or a PersonAddressImpl). ...

Rollback with Inheritance mapping...

2003-10-23 Thread Thomas Maby
I'm having some trouble using the PersistenceBroker to perform rollback on an object mapped with a simple inheritance hierarchy. Here's how my classes are configured: public class TNObject { private Integer id; private String comment; // (setters and getters) } public class TNHost

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-22 Thread Gerhard Grosse
: calling one of the I_Person methods implemented by User and Driver, would operate on the identical Person instance.) If you include class B in your mapping (using inheritance mapping) you could just query for class B and get all Users and Drivers in one query. What you would not get is Persons that

RE: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-22 Thread Mitch Norby
a Driver. Thanks for your help. Later. Mitch -Original Message- From: Gerhard Grosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 3:17 AM To: [EMAIL PROTECTED] Subject: Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object Hi Mitch, On Tue

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-22 Thread Gerhard Grosse
S ( id, person_id, ); Table DRIVERS ( id, person_id, ... ); ... Since OJB doesn't know about B, which declares the Person reference, you would need to use PersistentFieldIntrospectorImpl as PersistentField class in OJB.properties. You could also stick to Pe

RE: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-21 Thread Mitch Norby
Original Message- From: Gerhard Grosse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 9:50 AM To: [EMAIL PROTECTED] Subject: Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object On Tue, 21 Oct 2003 08:55:02 -0500, Mitch Norby <[EMAIL PROTECTED]&g

Re: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-21 Thread Gerhard Grosse
is >circumstance. > >If we have misunderstood OJB, please let me know. > >Later. >Mitch > >-Original Message- >From: Gerhard Grosse [mailto:[EMAIL PROTECTED] >Sent: Tuesday, October 21, 2003 6:55 AM >To: [EMAIL PROTECTED] >Subject: Re: Inheritance mapping,

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Christopher C. Worley
Matt, Here is what i suggest you do, if this fits your requirments. In this example Student extends Person and Person has a 1:M relationship with UserLogin. You can change it to 1:1 relation ship by makeint UserLogin.personId the PK instead of UserLogin.userLoginId. This way all people can h

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Gerhard Grosse
On Tue, 21 Oct 2003 09:45:29 -0400, Matt Mastrangelo <[EMAIL PROTECTED]> wrote: Hi Matt, >Hi Gerhard, > >I'm not saying the B1 and B2 instances should extend the same instance >of A, but that they should be materialized from the same A record in the >database. B1 and B2 would have to be differ

RE: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Mitch Norby
attributes from the A instance. 3) Fill in B1 attributes. 4) Store. Later. Mitch -Original Message- From: Matt Mastrangelo [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 8:45 AM To: OJB Users List Subject: Re: Inheritance mapping, storing new object associated with pre

RE: Inheritance mapping, storing new object associated with pre-e xistingsuper object

2003-10-21 Thread Mitch Norby
. Later. Mitch -Original Message- From: Gerhard Grosse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: Re: Inheritance mapping, storing new object associated with pre-existingsuper object Hi Matt, Excuse me to jump in here, but I believe what

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Matt Mastrangelo
Hi Gerhard, I'm not saying the B1 and B2 instances should extend the same instance of A, but that they should be materialized from the same A record in the database. B1 and B2 would have to be different objects obviously. I think this could be quite possible in OJB. But let me ask the questi

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-21 Thread Gerhard Grosse
Hi Matt, Excuse me to jump in here, but I believe what you have in mind is not possible in Java and even less with OJB. If your B1 and B2 instance should 'contain' the same A instance as base class, they are identical objects, which would require a language that supports multiple inheritance (and

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-20 Thread Matt Mastrangelo
Chris, Just to clarify -- are you saying it's not possible to create the User instance without also creating a new Person instance? Maybe my example was not too clear. Let me re-explain: I have a base class A with two subclasses, B1 and B2. I have already created an instance of B1 and stor

Re: Inheritance mapping, storing new object associated with pre-existingsuper object

2003-10-20 Thread cworley
Matt, I believe since the Person and Student object exist it will set there values to null except the personId. Because in the User instance you are storing allthe other fields are null (if you set them to null when you declare them) except the loginName. So, ojb will know that person and studen

Inheritance mapping, storing new object associated with pre-existing super object

2003-10-20 Thread Matt Mastrangelo
I'm trying to figure out how to store a new persisted object that extends a pre-existing object. For example, I have 3 classes: Person, Student, and User. Student and User extend Person. A Student object already exists, and I now want to create a User object that inherits from the same Perso