• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

XDoclet (EJBDoclet) - value of VO / DAO tasks?

 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm currently using XDoclet for EJB artefact generation to keep myself sane. I'm a big fan of code generation where practical - and the EJB area is certainly a prime candidate.

I'm wondering if anyone actually uses the VO/DAO tasks. In my current project (a small uni research project, so I'm free to use whatever technology I want), I've used the VO task. However, I'm now considering removing this, as I want my VOs to have some internal business logic. This would be nothing complex, just things like 'isAdult()', 'isDrivableAge()' on a customer - things that really (in a pure OO sense) must be part of the customer object. Using EJBDoclet to generate the VOs prevents me from doing this.

Has anyone else encountered this? Any recommendations? My current plan is to hand write my VO classes, and then manually write the setVO() and getVO() methods in the entity bean implementation class. It's more handwritten code, but it allows me to keep my VOs (which are used throughout the system) exactly how I want them.

I'd love to buy a book on XDoclet, as the online doco is rather scarce, but I'm a student... :-\. I should also add that I've checked out the only decent online document I've found, here: http://xdoclet.sourceforge.net/xdoclet/valueobjects.html

Cheers,


-Tim
 
The moustache of a titan! The ad of a flea:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic