Currently I don't allow objects to be created with new. They have to
go through my Factory class to create a new object. I actually create
a bunch of methods like, selectMyObject, insertMyObject, updateMyObect,
selectMyObjects (returns collection) and createMyObject. I also create
a criteria for each object. So I can do, myObjectCriter.addEmailEqualTo( email ).
Works pretty well so far. The create() method retrieves the next available ID from the DB and then accesses the constructor of the object with the ID.
But, there is always a better way. So I thought I would ask to see what
other people are doing for object creation and object updates. Are most
people using .store() and new()? Or do a lot of users have Factories?
And, if so, what are some of the ideas that work best for you and your users?
Hoping to start an interesting discussion here. If this has already been done here, please point me to the thread.
Thanks a lot.
Charlie
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
