|
Reasons to isolate data access code from entity bean to a helper class |
|
|
Instead of putting data access code in entity bean itself it might be better to put code in another class and calling it from Entity Bean due to following reasons.
- In case underlying data model or data access mechanism changes then it might be very impractical to change source code in entity bean.
- DAO is better option for writing such code and calls these classes directly into entity bean.
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.