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
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
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
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
: 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
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
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
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
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
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
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
>>
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
, 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
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
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).
...
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
: 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
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
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
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
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,
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
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
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
.
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
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
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
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
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
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
30 matches
Mail list logo