Re: Data object Class Implementation

2004-03-16 Thread Dave Newton
On Tue, 2004-03-16 at 15:06, Pedro Salgado wrote: > > Why don¹t you use a regular java bean and populate it with the values > retrieved from the model (database)? Fetch the data using the DAO and then > pass it to the bean... Something like: > > view.setPersonName(dao.getName()); Just to fur

Re: Data object Class Implementation

2004-03-16 Thread Pedro Salgado
Why don¹t you use a regular java bean and populate it with the values retrieved from the model (database)? Fetch the data using the DAO and then pass it to the bean... Something like: view.setPersonName(dao.getName()); Pedro Salgado On 15/03/2004 19:57, "Sica, David (David)" <[EMAIL PROTEC

Data object Class Implementation

2004-03-15 Thread Sica, David (David)
I want to create a new data object, save it to the database and then "pass it around" to other classes/methods for READ-ONLY use. I don't want any other accesses to the database from this object to be required after I've saved the object. In other words, I want to ensure that downstream classes