Hi all!
I'm working on a project with CMP 2.0 and a question raised using finder methods:
Everytime I call an finder method (e.g. findAll() ) I get a collection of objects, right? Which type of objects are these ones?
In my case I have a EJB Entity class called TestEJB. My local interfaces will be TestLocalHome and TestLocal, right?
Will my object be a TestLocalHome? A TestLocal?
And when I use the Value Object Pattern?
Is this object still an xxLocalxx object? Or may I cast these objects as Value Objects? I'm using a Value Object containing all the fields from my CMP EJB.
I'm using the implementation suggested by XDoclet as a Value Object pattern.
Thanks in advance!
Ricardo
I'm working on a project with CMP 2.0 and a question raised using finder methods:
Everytime I call an finder method (e.g. findAll() ) I get a collection of objects, right? Which type of objects are these ones?
In my case I have a EJB Entity class called TestEJB. My local interfaces will be TestLocalHome and TestLocal, right?
Will my object be a TestLocalHome? A TestLocal?
And when I use the Value Object Pattern?
Is this object still an xxLocalxx object? Or may I cast these objects as Value Objects? I'm using a Value Object containing all the fields from my CMP EJB.
I'm using the implementation suggested by XDoclet as a Value Object pattern.
Thanks in advance!
Ricardo