> Is it possible to make Transfer object (as i found somwhere, known as:Value
> object's) with POJO's.
Yes. Just write a java class with some member values that can be set (or
specified at constructor time) and also get. Rather than writing
getters, if the value object/transfer object is immutable (won't change
after creation), it's worth considering making the member values public
final and hence allowing direct access to them.
> If so, any tutorials on the web would be appriciated (been googl-ing but
> found only with ejb's).
polilop - 09 Jan 2007 11:25 GMT
Thanks for reply. Have you any web-s, tutorials like that involve database
with TO-s (POJO's) ?
>> Is it possible to make Transfer object (as i found somwhere, known
>> as:Value object's) with POJO's.
[quoted text clipped - 7 lines]
>> If so, any tutorials on the web would be appriciated (been googl-ing but
>> found only with ejb's).
Alex Hunsley - 09 Jan 2007 13:51 GMT
> Thanks for reply. Have you any web-s, tutorials like that involve database
> with TO-s (POJO's) ?
One of the best places I know for this is Sun's own Core J2EE patterns site:
http://java.sun.com/blueprints/corej2eepatterns/
It's also available as a book, but the patterns are all there on the web
page above. Example: click on the "Core J2EE Patterns Catalog" link,
then click on "Transfer object" in the graphic.
HTH,
lex