Re: Default column values?

Franck Routier <[email protected]>
Newsgroups gmane.comp.java.orm.simpleorm
Organization Axège Sarl
Message-ID <1226477760.6723.5.camel@franck-laptop>
Hi,

you're not missing anything, and a default value would indeed be a
valuable feature.

I think we could think of it, to find where it would best fit :
rmeta.newRecordInstance, or at a higher level, like dataSet.create(),
createDetached, ...

Did you already think about it ?



Le mercredi 12 novembre 2008 à 00:18 +0000, cg_ia a écrit :
> Is there no notion of a column's default value is SimpleORM? For 
> example, when I call SDataSet.create() or SSessionJdbc.create(), I'd 
> like the SRecordInstance that is returned to have default values set 
> on most of its fields. Generators don't seem to fill this roll as far 
> as I can tell, they are only for generating primary key values.
> 
> I know I can add this functionality by putting my own user property
> on 
> my SFieldMetas, and wrapping the create() calls, I just wanted to
> make 
> sure I wasn't missing any built-in functionality.
> 
> 
> 
> 
>  



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.