db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Detecting inconsistencies of mapped-by declarations?
Date Thu, 07 May 2009 17:21:19 GMT
Hi Andy,

On May 7, 2009, at 9:47 AM, Andy Jefferson wrote:

>> Should the implementation throw an error in such situations,  
>> warning the
>> user of the erroneous metadata?
>
> Shared FK relations are a perfectly valid thing to have IMHO
> http://www.datanucleus.org/products/accessplatform_1_1/jdo/orm/one_to_many_collection.html#shared_fk
> You could have the same as that example with 1-1 and a discriminator  
> for
> determining the relation.

In the absence of the datanucleus extension, it's an error, right?  
i.e., there's no standard way to implement this.

Craig
>
>
> The place of an ORM spec is to standardise particular relation  
> types, not to
> prevent other ones.
>
>
> -- 
> Andy  (DataNucleus - http://www.datanucleus.org)

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message