William I. Zumwalt penned

> I'm trying to implement a DAO pattern in my enitities
> (first time) and I understand them, but what I'm not
> understanding is how to do them w/ XDoclet.
> [...]
> Also, is the *Data.java file that xdoclet generates (I
> think because of the <dataobject/> tag and writes
> "Data object for ..." in the top of the file content
> ... does data object also mean "Transfer Object" in a
> DAO pattern sense? Same thing? Is that what got
> generated? Looks like it to me.

Yes, yes, no, yes. ;)

1. *Data.java classes are due to the <dataobject/> subtask
2. These objects are Data Transfer Objects in the DAO sense
3. Data Objects in XDoclet were replaced by Value Objects:
<valueobject/>
4. Same conceptual idea, different implementation

Are you creating your own DAO templates (complete implementations), or
are you hoping XDoclet will generate the DAOs for you? If the latter, I
believe that was the original intention of the <dataobject/> and
<entityfacade/> subtasks. Unfortunately, they have been deprecated but
only <dataobject/> got a replacement: <valueobject/>.

-- 
David Harkness                               Sony Pictures Digital
Sr. Software Engineer   310.482.4756    [EMAIL PROTECTED]

        Those who judge the value of advice by its source
        will at once dismiss the best and follow the worst.


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to