(o:

Ara what were you commenting about leaky abstractions the other day?  hehe
(http://roller.anthonyeden.com/page/ara_e and
http://www.joelonsoftware.com/articles/LeakyAbstractions.html)

Tim - essentially all you're doing there is getting convenience of putting
the config in the class.  The object abstraction model is defined by EJB and
in this case JBoss - and its not pure, in that yes, you still need to
provide information about how to map it to the database.

>From my reading, this is a criticism of EJB/JBoss rather than XDoclet - as
all XDoclet does here is create jbosscmp-jdbc.xml.

cheers
dim

----- Original Message -----
From: "Tim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 11:05 AM
Subject: [Xdoclet-user] Object Model and Relations.


> If you have 2 objects say X and Y.  X has a 1-n relation to Y.
>
> Why are folks doing something like the following:
>
> /**
>  * @ejb.relation
>  *    name="blah"
>  *    role-name="grok-has-blah"
>  *
>  * @jboss.relation
>  *    fk-constraint="true"
>  *    fk-column="foo_id"
>  *    related-pk-field="fooId"
>  *
>  * @jboss.relation
>  *    fk-constraint="true"
>  *    fk-column="bar_id"
>  *    related-pk-field="barId"
>  */
> public abstract zap.interfaces.BlahLocal getBlah();
>
>
> When X ( in a pure object sense ) should have no knowledge of the
> internals of Y?  The usage of "columns" here seems to me to break
> the object abstraction model.
>
> Thanks.
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Sourceforge Network Survey
> Take Our Survey and You Could Win a $500 Gift Certificate!
> http://ugamsolutions.com/psurvey/osdn/SourceForge/index_sourceforge.htm
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to