ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: Possibilities and/or impossibilities of subclassing
Date Wed, 15 Jun 2005 12:18:01 GMT
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