Hi,

Where do you use to put Business Logic?

Let's see if I understand it right:
I use to add some validation inside insert() methods,
for example: It only can add an user it the fields
name and department were supplied.

The validation to check if the fields name and department
were correctly supplied is the Business Logic, right?

Once it can't add an user without these fields I use
to check the fields inside daoUser.insert()

So I have Business Logic inside DAOs.
Is it a good practice?
If not, how can it be sure any user would be added
without the required fields?

Thanks,
Ronan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to