Is the polymorphic CMP discussion still alive for anyone here?  Some
background links:

* http://www.onjava.com/lpt/a/2589, http://www.onjava.com/lpt/a/2697
* http://www2.theserverside.com/home/thread.jsp?thread_id=14161
* http://makeashorterlink.com/?H25C148C2
*
http://www.mail-archive.com/xdoclet-user@lists.sourceforge.net/msg03831.html

If there is a way to get this done without CMP container support (i.e., make
it work on JBoss 3.0), I'd like to take a whack at it.  I'm looking for
information on how people have implemented polymorphism under apps using CMP,
with or without XDoclet.  XDoclet currently has some abilities with
polymorphism, but only in what would be considered "Horizontal Mapping" by
Proulx's definitions in http://www.onjava.com/lpt/a/2697.  I'm more
interested in "vertical mapping", with "language inheritance" as defined by
O'Connor in http://www2.theserverside.com/home/thread.jsp?thread_id=14161.

Has anyone done anything like this that they care to share the details on?
I've been thinking about this all day and am running into various walls that
I am happy to describe if there is anyone listening that wants to discuss it.
In the end, I'd like to work on pulling it all together into some new tags
and/or a subtask that can provide the ability for an "entity A" to have a CMP
relation to an "entity B" where "entity B" has one of numerous potential
subclasses that are automagically and correctly instantiated when the
relation is followed.  Following the link through a value object is perfectly
reasonable and may be the best place to put the semantic duct tape and
bailing wire for this.

According to the Proulx article, WL7 has support for "multiple table
mapping," with which a single entity maps to fields coming from two or more
related tables.  JBoss 4 is supposed to also have this functionality
according to David Jencks.  I presume this work is going on at the container
level because there are hurdles that are impossible to otherwise get around
in the problem, but I thought I would post this to see if anyone knew of
restricted use cases that could be accomplished without the container
functionality.  I have a few ideas, including what I've pulled from the links
above, but just wondering if there are strong opinions on this yet.

thanks,

-b


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to