postgres serial

From: Koen Segers (KoenSeger..carlet.be)
Date: Sun Feb 13 2005 - 10:13:35 EST

  • Next message: Andrus Adamchik: "Re: postgres serial"

    Hi,

    I used phpPgAdmin to create my database. I used a serial type to increment the
    id automaticly. It creates automaticly a sequence.

    Now I want to insert a field with cayenne. How can request the id?
    Course newcourse = (Course) context.createAndRegisterNewObject(Course.class);
    newcourse.setID(/*whatnumber*/);

    Greetz

    -- 
    

    Koen Segers

    <koenseger..carlet.be> <http://eddyvite.dyndns.org>



    This archive was generated by hypermail 2.0.0 : Sun Feb 13 2005 - 10:13:51 EST