Hi, I'm having a problem with mapping classes on multiple joined tables on OJB
1.0.3. I am following the 'Advanced O/R'
tutorial in the section 'Mapping Classes on Multiple Joined Tables'.
I have 2 tables, one table is a child of the other:
parent
--
class-descriptor
class
hi armin,
Armin Waibel schrieb:
Stefan Walkner wrote:
hello,
we start working on this issue. Hope till next release this will be
fixed.
thank you for the info!
I really was searching long and was not able to find any information
about that, so I'm glad to hear any response from you.
The issue
Jakob Braeuchi wrote:
The issue is noted in the release-notes:
snip
- When a class mapped on multiple joined tables was used in a
reference only objects
of the base type class will be instantiated, e.g. a Company class has
a 1:n reference 'employees' to a base class Employee and class
-
From: Armin Waibel [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 12:16 PM
To: OJB Users List
Subject: Re: Mapping Classes on Multiple Joined Tables
Jakob Braeuchi wrote:
The issue is noted in the release-notes:
snip
- When a class mapped on multiple joined tables was used
hello,
I use Mapping Classes on Multiple Joined Tables to map an Object which
inherits from another into two tables.
BUT: is there a way to get the different objects back, when querying?
I mean, I have following mappings:
--
class-descriptor class
Hi Stefan,
Stefan Walkner wrote:
hello,
I use Mapping Classes on Multiple Joined Tables to map an Object which
inherits from another into two tables.
BUT: is there a way to get the different objects back, when querying?
I mean, I have following mappings:
we start working on this issue. Hope till
hello,
we start working on this issue. Hope till next release this will be fixed.
thank you for the info!
I really was searching long and was not able to find any information about
that, so I'm glad to hear any response from you.
Thank you,
stefan walkner
Stefan Walkner wrote:
hello,
we start working on this issue. Hope till next release this will be fixed.
thank you for the info!
I really was searching long and was not able to find any information about
that, so I'm glad to hear any response from you.
The issue is noted in the release-notes:
I'm sorry, I forgot to add Collection of A's in C (see above). With this
collection, xdoclet fails - for both 1.0.1 release and 1.0.x branch (I'm
working
off the branch as mentioned above).
Ok, right, in this case I too get the error that you described.
Yes, it is not: first, you have to
Hi Vadim,
Stick to the Repository file I posted earlier! If you don't use the abstract
modifier for the super class it works.
Regards,
Nils
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Vadim Gritsenko wrote:
Hey All,
[Using OJB_1_0_RELEASE branch from CVS]
As other users here, I'm also struggling with mapping class hierarchy
on multiple joined tables, and can't figure out what's wrong and
whether it is working at all or not.
Consider this slightly modified (added relation to
Thomas Dudziak wrote:
Vadim Gritsenko wrote:
Hey All,
[Using OJB_1_0_RELEASE branch from CVS]
As other users here, I'm also struggling with mapping class hierarchy
on multiple joined tables, and can't figure out what's wrong and
whether it is working at all or not.
Consider this slightly
Nils Liebelt wrote:
Hi Vadim,
Stick to the Repository file I posted earlier! If you don't use the abstract
modifier for the super class it works.
I don't have abstract classes anywhere - my case is a bit different. It's about
mapping classes A and B, where B extends A, to two tables, and class C
-update/delete 'true' or 'object' so I
think it could be work.
regards,
Armin
Thanks in advance,
Colin
Armin Waibel wrote:
Hi Luis,
Luis Cruz wrote:
Hello,
Is mapping classes on multiple joined tables compatible with the use of
ODMG? I ask because according to the documentation, auto-update must be
set
Hi Luis,
Luis Cruz wrote:
Hello,
Is mapping classes on multiple joined tables compatible with the use of
ODMG? I ask because according to the documentation, auto-update must be
set to true in order to achieve such a mapping, however, ODMG is only
guaranteed to work with auto-update set to false
Hello,
Is mapping classes on multiple joined tables compatible with the use of
ODMG? I ask because according to the documentation, auto-update must be
set to true in order to achieve such a mapping, however, ODMG is only
guaranteed to work with auto-update set to false.
Thanks in advance,
Luis
III wrote:
Hello.
The other day I embarked on a little journey by mapping classes on
multiple joined tables. It went really well. I am very excited to
see it working and to see it working so well.
One question though, and I can use the example on the site to demonstrate.
!-- Definitions
Hello.
The other day I embarked on a little journey by mapping classes on
multiple joined tables. It went really well. I am very excited to
see it working and to see it working so well.
One question though, and I can use the example on the site to demonstrate.
!-- Definitions
Hello,
I'm trying to map classes on multiple joined tables as described in OJB tutorial.
This is my situation: I have a class A that extends a class B that in turn extends a
class C that extends a fourth class D. In the classes A, B and C there is an attribute
referring to the super class's
hi christof,
have you tried auto-update=true ?
the problem is imo that this must be false for odmg :(
jakob
Necro wrote:
Jakob Braeuchi wrote:
hi christof,
this is a problem with your auto-update setting in the
reference-desriptor pointing to the superclass.
auto-update should be true.
Jakob Braeuchi wrote:
hi christof,
hi,
have you tried auto-update=true ?
Yes i already set auto-update=true as you mentioned in your last
mail. This made it possible to store objects of type B (the
repository.xml is shown in one of my last mails). when auto-update
is set to false, only parts
Jakob Braeuchi wrote:
hi christof,
this is a problem with your auto-update setting in the
reference-desriptor pointing to the superclass.
auto-update should be true.
Hi,
thanks, now inserting a value works just fine. But now I got
another problem. When I select an object of class B only
Jakob Braeuchi wrote:
hi christof,
have you tried the latest from repository. imo the path provided by
kurt hoehn solves this problem.
Thanks for that advice. Now the select statements seem to work.
But there seems to be another problem. When I save an instance of
class B, only the table b
hi christof,
this is a problem with your auto-update setting in the
reference-desriptor pointing to the superclass.
auto-update should be true.
hth
jakob
Necro wrote:
Jakob Braeuchi wrote:
hi christof,
have you tried the latest from repository. imo the path provided by
kurt hoehn solves
Hi,
I have got another problem. Let's say i have a
class A and a subclass B and both implement
interface C.
class-descriptor class=C
extent-class class-ref=B /
/class-descriptor
class-descriptor class=A
extent-class class-ref=B /
/class-descriptor
class-descriptor class=A table=a
hi christof,
have you tried the latest from repository. imo the path provided by kurt
hoehn solves this problem.
jakob
Necro wrote:
Hi,
I have got another problem. Let's say i have a
class A and a subclass B and both implement
interface C.
class-descriptor class=C
extent-class class-ref=B /
26 matches
Mail list logo