[postmodern-devel] Exlcuding slots dao-save

Phil Marneweck zaries at global.co.za
Sun Oct 25 16:28:44 UTC 2009


I want slots that correspond to db columns but are not considered on
insert and update. I want to use oid but dont want postmodern to try and
update it because this gives an error.

On Sun, 2009-10-25 at 17:17 +0100, Marijn Haverbeke wrote:
> Hi Phil,
> 
> I am not entirely sure what you mean. Do you want extra slots in the
> object that don't correspond to db columns? Then just don't give them
> any Postmodern-specific options, and they will be normal slots. Or you
> have two similar tables, one with a superset of columns of the other?
> In that case, make a class for the smaller table, and create one that
> inherits from that for the bigger table. Does that help?
> 
> Best,
> Marijn
> 
> On Sun, Oct 25, 2009 at 4:45 PM, Phil Marneweck <zaries at global.co.za> wrote:
> > Hi
> >
> > I am trying to figure out how to exclude certain slots when persisting
> > the dao instance to the db short of making a new object with the limited
> > range of slots.
> >
> > Any ideas or advise?
> >
> > Thanx
> >
> >
> >
> > _______________________________________________
> > postmodern-devel mailing list
> > postmodern-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel
> >
> 
> _______________________________________________
> postmodern-devel mailing list
> postmodern-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel





More information about the postmodern-devel mailing list