ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <ni...@wis.nl>
Subject RE: Possibilities and/or impossibilities of subclassing
Date Wed, 15 Jun 2005 14:35:34 GMT
Yes, that is also the answer I was looking for but nothing is mentioned
about _how_ to implement a table per subclass, and additionally, the
.NET-docs are updated again (v1.2.1) and now state the following:

* resultMap for each class
* resultMap with submaps for a class hierarchy
* resultMap with extended resultMaps for each subclass

Which does not even state the word 'table' anymore, and the
possibilities now listed are what I've figured out myself, but
unfortunately these are not sufficient for me.

Thanks for the answer,


-----Original Message-----
From: Ron Grabowski [mailto:rongrabowski@yahoo.com] 
Sent: woensdag 15 juni 2005 14:18
To: user-java@ibatis.apache.org
Subject: Re: Possibilities and/or impossibilities of subclassing

The next message in the thread had a list of three cases where the
discriminator might come in handy:

 * table per class hierarchy
 * table per subclass
 * table per concrete class

That's the answer I was looking for. I believe both the .Net and Java
version now have the same level of suppor for discriminators. Although
I did noticed that the Java version specifies them like this:

  <submap />
  <submap />
  <submap />

While the .Net version does it like this:

 <discriminator />
 <submap />
 <submap />
 <submap />

Which leads me to believe the .Net version only allows for one
discriminator per resultMap ??? That's what I remember seeing at some

--- Niels Beekman <niels@wis.nl> wrote:

> Hi,
> Could you guys please clarify some of the possibilities and
> unpossibilities of iBATIS when it comes to subclassing?. What I
> understand from the various documentation-fragments is that iBATIS
> only
> supports discriminators when all columns are available in a single
> resultset. How would this work when I have an ISA-design with let's
> say
> 10 different subtables, this would result in enormous amounts of
> data...
> Is there any documentation that I have missed somehow? I saw it on
> the
> undocumented features-list, but maybe there is some after all. I
> looked
> at the provided Documentation.xml but this is an example with just
> one
> table, which is not I'm looking for. I even checked the .NET
> documentation too, the discriminator is mentioned there, but not in
> the
> context of subtables (and I heard that iBATIS.NET has more features
> when
> it comes to subclassing).
> I hope you can shed some light on this, otherwise it requires some
> workarounds on my end.
> Thanks for your time,
> Niels
> PS I tried to contact Ron for his solution
> html) to this problem, as he said he was helped "off list" but could
> not
> reach him.

View raw message