For simple field level validation I am using XML Schema....saves
duplication...

(I am also using XSLT to generate my XDoclet beans directly from the XML
Schema...works like a dream....from XML Schema through XDoclet and onto
successful deployment just by typing "ant" !).

But I am also interested at knowing from a conceptual level the best place
to put more complex 'dependency' validation....

Chris
-=-=-=

-----Original Message-----
From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]]
Sent: 08 February 2002 11:30
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Validation code for entity beans / data
objects



> I use XDoclet 1.1.1. to generate EJB 2.0 CMP entity
> beans. I was wondering
> where you folks suggest to put field validation
> logic (preferably the
> generated data objects?) and ideas on how I would go
> about to have my
> validation code included in the generated code. Can
> I use a merge file to
> include validation code specific to different data
> objects and entity beans
> and XDoclet picks the right code fragments for each
> generated DO
> automatically?

Hi, I'm crossposting this to xdoclet-devel too.

Maybe we shall borrow some methods from webwork
validation stuff, and made data object "real bean"
with property editors and validator objects?

And then use reflection somehow?


what do you think?


regards,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to