You must modify the "DEFINE attribute FOR Attribute" section in
DomainObject.xpt (lines 125-127).
There's another option. Edit your SpecialCases.xpt file, which should be
located in src/main/resources. You must add something like this:
«AROUND *::attribute FOR Attribute»
/** «name» */
«targetDef.proceed()»
«ENDAROUND»
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:fornax-
> [EMAIL PROTECTED] En nombre de amphoras
> Enviado el: miércoles, 25 de junio de 2008 0:14
> Para: [email protected]
> Asunto: [Fornax-developer] [Sculptor] Generate javadoc for attributes?
>
>
> Hi,
>
> First of all, I'm really impressed with Sculptor! I thought that I was
> going to have to write something similar and not nearly as powerful, and
> then I discovered this project. So thanks for making my life easier. :)
>
> I do have a question though. Is there any way to generate javadoc for the
> attributes in the domain object? For example, I would like my class to
> declare attributes like this:
>
> /** Address Line 1. */
> private String addressLine1;
>
> /** Address Line 2. */
> private String addressLine2;
>
> So I edited the "model.design" file like this:
>
> /** Address Line 1. */
> String addressLine1 nullable
>
> /** Address Line 2. */
> String addressLine2 nullable
>
> However, the comments are ignored. I also looked at the DomainObject.xpt
> template, but I cannot figure out how to get to the comments. I'd like to
> be able to generate them because we have a Checkstyle rule that all
> attributes must be commented. Plus, it's just nice for documentation
> purposes. So how should I specify the comments?
>
> Thanks!
> --Polly
> --
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer