I don't know exactly how to do this because I haven't done it myself. For build.xml, my guess is you'd just need to remove the hibernatedoclet target and any references to it.
As far as using annotations instead of Commons Validator - I don't believe that's possible with Struts 1.x. It is possible with many other web frameworks, but not Struts 1.x. Here's an article on using Hibernate's Validatation annotations with Spring MVC and Prototype (for client-side validation). http://www-128.ibm.com/developerworks/web/library/j-hibval.html In 2.x, we're not using XDoclet for generation validation rules - we're simply requiring users to edit the validation XML files by hand. The nice thing about this approach is it's documented much better than the XDoclet way. We hope to move to annotations in the near future, but most frameworks have their own way of doing them at this point - hence the reason for JSR 303. Unfortunately JSR 303 doesn't cover client-side validation because it's not web-specific. Hope this helps, Matt On 2/19/07, Irshad Buchh <[EMAIL PROTECTED]> wrote:
Thanks Matt for the reply. We have already done this bit. What changes do we have to put in the build.xml file? Just give us an idea of the ant targets that need to change? Also can we replace the struts validator xdoclet tags with java annotations. We will like to get rid of xdoclet tags and replace these with java 5 annotations in the pojos. --Irshad. Matt Raible-3 wrote: > > You should be able to look at AppFuse 2.x's data/hibernate module to > see what the new code will look like. Basically, you'll need to > change your *.java model objects to use annotations and your > sessionFactory to use AnnotationSessionFactoryBean. > > Matt > > On 2/19/07, Irshad Buchh <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> We have a production application based on AppFuse 1.9.4. >> (Hibernate+Struts). >> We would like to replace the xdoclet tags in pojos with the >> annotations(Hibernate and Struts). Accordingly the ant targets (Hibernate >> Doclet etc.) would get changed. Can someone point us the optimal path to >> do >> this. Appreciate your feedback. >> >> --Irshad. >> -- >> View this message in context: >> http://www.nabble.com/AppFuse-1.9.4-with-Hibernate-annotations.-tf3251695s2369.html#a9039148 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/AppFuse-1.9.4-with-Hibernate-annotations.-tf3251695s2369.html#a9042702 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
