Re: getter setter and database

2006-05-17 Thread Peter Scott
On Wed, 17 May 2006 22:52:04 +0800, Ken Perl wrote: > I don't have know any modules including Class::DBI, If I use > Class::DBI to generate accessors with name of columns, do I still need > the my own accessors above in my package? I think it is needed, but I > don't find a demo how to combine the

Re: getter setter and database

2006-05-17 Thread Ken Perl
I don't have know any modules including Class::DBI, If I use Class::DBI to generate accessors with name of columns, do I still need the my own accessors above in my package? I think it is needed, but I don't find a demo how to combine the two accessors together. On 5/17/06, Peter Scott <[EMAIL PR

Re: getter setter and database

2006-05-17 Thread Peter Scott
On Wed, 17 May 2006 08:23:11 +0800, Ken Perl wrote: > suppose I have a table person with following columns, name, age, > salary. If use OOP [snip] > My question is, should I query/update the table at the same time in > above accessor method? Some people do. Some defer it in various ways. Depen