tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "haleh mahbod" <hmah...@gmail.com>
Subject Re: DAS Java Convention Over Configuration question
Date Sat, 07 Apr 2007 02:42:26 GMT
Hi Adriano,
It would be good to document any conventions that others need to know about
also on this page.
http://cwiki.apache.org/TUSCANY/das-java-project.html

Thanks,
Haleh

On 4/6/07, Adriano Crestani <adrianocrestani@gmail.com> wrote:
>
> Just to be sure: Is the Convetion Over Configuration over "id" and
> "xxx_id"
> columns, more specifically the "id" keyword, case sensitive?
>
> Adriano Crestani
>
> On 4/5/07, Adriano Crestani <adrianocrestani@gmail.com> wrote:
> >
> > Thanks Kelvin ; )(again)
> >
> > Adriano Crestani
> >
> > On 4/4/07, Kevin Williams <kevincbw@qwest.net> wrote:
> > >
> > > Hello Adriano,
> > >
> > > This use of convention is actually for the "write" side of things.  A
> PK
> > >
> > > is needed to generate correct update commands based on the SDO Change
> > > Summary.  In the absence of a defined PK, the DAS will assume any
> column
> > > named ID is the PK and use that in the generated statement.
> > >
> > > Also, we have tried to avoid dependence on Database Schema metadata
> for
> > > information such as PKs and FKs.  The reason for this is that they are
> > > sometimes not defined in the database.
> > >
> > > Thanks,
> > >
> > > --Kevin
> > >
> > >
> > > Adriano Crestani wrote:
> > >
> > > > I was wondering why the "id" field being mapped as a table PK is
> > > > defined as
> > > > "Convention Over Configuration". Because in java it is possible to
> > > > retrieve
> > > > the table PK only using java.sql.DatabaseMetaData.getPrimaryKeys
> > > (String
> > > > catalog,     String schema,   String table) method.
> > > >
> > > > Does the "id" Convention Over Configuration exist only because some
> > > DBMS
> > > > does not support the java.sql.DatabaseMetaData.getPrimaryKeys(String
> > > > catalog,     String schema,   String table) method?
> > > >
> > > > Adriano Crestani
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message