Use of DTO in ofbiz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of DTO in ofbiz

Ashis Bhattacharjee
Hi

Just want to know regarding the possiblility in ofbiz to use custom made class like DTO
at fornt-end side. Currently we are using Map only. Instead of using Map can DTO be used?

Thanks
Ashis



     
Reply | Threaded
Open this post in threaded view
|

Re: Use of DTO in ofbiz

Shubham Dubey
Hi Ashis


Yes you can create and use your Data Transfer Objects (DTO's) in ofbiz,
but using them will :-

[1] Increase the verbosity of  xml services you are using as you will
have to use <call-object-method> again and again for getting/setting the
object values.
[2] You will have to build again and again whenever you make any changes
in your Dto's.

So service map's are better alternative till now.


Thanks
Shubham Dubey
HotwaxMedia



Ashis Bhattacharjee wrote:

> Hi
>
> Just want to know regarding the possiblility in ofbiz to use custom made class like DTO
> at fornt-end side. Currently we are using Map only. Instead of using Map can DTO be used?
>
> Thanks
> Ashis
>
>
>
>      
>