Em Seg, 2002-11-11 �s 17:12, [EMAIL PROTECTED] escreveu:

> Hello!
> 
> I've just started our migration from home-grown persistence to JBoss CMP,
> and I've decided to use XDoclet. I'm very impressed and happy, and would
> like to congratulate everyone on a very nice piece of work!

Thank you :) I hope many people also find xdoclet as nice and useful as
you do :)

> I am using Data Transfer Objects (DTOs) (from "Marinescu, EJB Design
> Patterns"). They are a data-bundle, extending java.lang.Object (usually),
> and completely stand-alone. Is this the same as a Value Object on this
> list, or is that another type of entity in XDoclet?

Yes, it's the same concept. We're just using the nomenclature found in
"Core J2EE Patterns".

> When my DTOs are created, any Container Managed Relationships (CMRs) added
> to the class use the EJB Local interface in the getter/setters. Doesn't
> this add an EJB dependency on the DTO objects I would rather not have?
> Shouldn't the DTO objects be self-standing generic objects? If so, how do I
> convert the Local interface references to the corresponding DTO reference?

Using xdoclet's VO tags you generate graphs of value objects -- you
don't get EJB references in value objects. Well, I think it's time to
post my small VO-HOWTO to public review :)

> Also, I would like to have a Factory class that takes a DTO object and
> converts it to a Local object, and vice versa, and contains methods for all
> DTOs in my system. Is there now a way to have this static final Factory
> class generated by XDoclet? Would this be a good thing?

This isn't currently possible with the bundled templates. Of course, you
could write your own templates to generate this. That's the True Power
of XDoclet. ^_^

As a side note, we're currently discussing the generation of value
objects through a Value Object Factory -- the same pattern exposed in
"Core J2EE Patterns". I'm particularly interested is tackling this is
some not-too-distant future -- I just need to breath a little at work.

-- 
Pazu <[EMAIL PROTECTED]>

Anime Gaiden - de fãs para fãs, sempre.
http://www.animegaiden.com.br

Attachment: signature.asc
Description: PGP signature

Reply via email to