Re: How to create Meaningful Primary Keys? JUST SAY NO TO MEANINGFUL POINTERS!

2009-02-02 Thread Pierre Lavignotte
and I don't want these fields to be writable. Cheers Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Mon, Feb 2, 2009 at 3:15 PM, Eric Lazarus wrote: > I can't let this point(er) go buy: JUST SAY NO TO MEANINGFUL

Re: How to create Meaningful Primary Keys?

2009-02-02 Thread Pierre Lavignotte
I don't think his question is about sequence usage but about selecting rows with specific PK values... Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Mon, Feb 2, 2009 at 2:25 PM, Alessio Giovanni Baroni < alessio

Re: How to create Meaningful Primary Keys?

2009-02-02 Thread Pierre Lavignotte
() { return DataObjectUtils.intPKForObject(this); } There are similar methods for when primary key is not an integer value. Cheers Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Mon, Feb 2, 2009 at 2:14 PM, Νίκος Παρά

Re: How to create Meaningful Primary Keys?

2009-02-02 Thread Pierre Lavignotte
Hi Nikos, If you need PK for all your tables, then maybe you need to generate them. But if you only need to use them for a couple tables then you should look at DataObjectUtils class. Cheers, Pierre Cordialement, Pierre Lavignotte Ingénieur Conception & Développement

Re: Cayenne 101

2008-12-26 Thread Pierre Lavignotte
he Modeler ? It is really helpfull to define you graph. (Just see the mail from Robert Zeigler, seems that I am out of date with the 3.0 version...) Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Fri, Dec 26, 2008 at 9:05 P

Re: Cayenne 101

2008-12-26 Thread Pierre Lavignotte
e the list can be in memory. I know it's not logical but I'm quite sure I allready encontered this case. I use Cayenne 2.0.4 so Cayenne 3.0 can differ in some points. Pierre Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com

Re: Select By ID

2008-12-09 Thread Pierre Lavignotte
ot;Delete > USER where name = 'name'" is not a good option... neither creating a new > key > column to do this. > > Thanks in advance. > > Cheers > -- Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com

Re: Sequence postgres.

2008-12-05 Thread Pierre Lavignotte
know how to set the Cayenne with postgres to always make an > insert realize a nextval on the sequence postgres. > > thank > -- Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com

Re: Problem with sequences in PostgreSQL

2008-12-04 Thread Pierre Lavignotte
maps this way: > > > > > length="100"/> > > > isPrimaryKey="true" isMandatory="true"/> > > > > > > > > type="java.lang.String" > > db-attribute-path="descripcion"/> > > > > > > > > Pk Generation strategy = Default. > > > > > > user@cayenne.apache.org > > > > > > Thanks for reading > > > -- Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com

Re: How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Pierre Lavignotte
n the standard ones... Pierre On Tue, Oct 7, 2008 at 6:29 PM, Scott Anderson <[EMAIL PROTECTED]>wrote: > Someone asked a similar question before - the clever solution was to map > the field in the modeler as if it were part of a separate table. > > -Original Message- &g

How to prevent Cayenne from fetching BLOB fields ?

2008-10-07 Thread Pierre Lavignotte
Hello, I use Apache Cayenne for a while now with no problem, but I went into a new issue today. I have an Oracle data table containing 2 BLOB fields. When I get the rows from this table, Cayenne also fetches the BLOB data, so the query is very long, or I get a time out exception. I tryed :