Forums Register Login

DAO methods

+Pie Number of slices to send: Send
In that place is best to include methods related to an model entity, In the entity or DAO.
In the DAOs is good practice to include search methods related to all entities. findAll, findxxx, etc. .. but what happens if the method is related to a particular entity should be within the hibernate entity for example, or within the DAO passing the entity as parameter.
Ex:

theCar.repare(wheel,tools);
or
carDAO.repare(theCar,wheel,tools);
What is better?


Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 648 times.
Similar Threads
Part 2, Fast Lane Reader vs EntityBeans
Bitter EJB
DAO methods
VB variables? SQL queries?
Cade component diagram and DAO
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:36:44.