I figured that it kind of guesses the keys based on the URI on the classMap;
that is, if it "finds" a record, it generates its URI, and if a URI is
presented, it parses back the keys to SELECT in the database.
I had a database that, for some reason, has primary key values like
"000/00-1". It generated a URI like /document/000/00-1 and, when requested
to get properties from it, the WHERE clause specified only "00-1" (or 000, I
don't remember right now).
Diogo F.C. Patrão
Manager of Medical Informatics
Biotechnology Laboratory
Hospital A.C. Camargo
http://www.accamargo.org.br/
On Thu, Jan 6, 2011 at 6:20 PM, Richard Cyganiak <[email protected]>wrote:
> Hi Kamler,
>
> This response is probably too late to be useful -- sorry for that,
> christmas holidays etc ...
>
> On 14 Dec 2010, at 02:35, Kamler Hammez wrote:
> > Would someone explain me how D2RQ engine deals with Primary Keys Foreign
> Keys, and even Key equality in some cases, of a database?
>
> The D2RQ engine doesn't deal with keys at all.
>
> The knowledge what's a key and what's not essentially is already present in
> the mapping file. In particular in d2rq:uriPattern and d2rq:join.
>
> D2RQ's automatic mapping generator looks at keys and handles them “in the
> obvious way”.
>
> Best,
> Richard
>
>
> >
> > --
> > Kamler
> >
> >
> >
> ------------------------------------------------------------------------------
> > Lotusphere 2011
> > Register now for Lotusphere 2011 and learn how
> > to connect the dots, take your collaborative environment
> > to the next level, and enter the era of Social Business.
> >
> http://p.sf.net/sfu/lotusphere-d2d_______________________________________________
> > d2rq-map-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> d2rq-map-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel