My medium term plan is to make Tapestry smarter about the Hibernate
annotations; so it will see @NotBlank and @Email and set up the
correct Tapestry validations for those, as if
@Validate("required,email") were present, in addition to any actual
@Validate annotation.

On Thu, Oct 30, 2008 at 5:23 AM, James Sherwood
<[EMAIL PROTECTED]> wrote:
> Hello,
>
>
>
> I have the reverse engineering working correctly but I wish to modify it a
> bit.
>
> Tapestry requires and @Validate("required") annotation in front of the
> variables of the class that are required for global validation. (Unless
> there is a way to do global validation without using @validate in the
> entities class) I have to manually put these in each time I regenerate my
> POJOs. Is there a way I can make this happen automatically when I generate
> my POJO's?
>
>
> Currently it puts this annotation in front of required field's getters:
> @Column(name = "fieldname", nullable = false, length = 100)
>
> Some information that may be needed:
>
> In the Hibernate Code Generation window:
>
> Tab: Main
> Reverse engineer from JDBC Connection checked
> Generate basic typed composite ids checked
> Detect optimistic lock columns checked
> Detect many-to-many tables checked
>
> Tab: Exporters
> Use Java 5 syntax checked
> Generate EJB3 annotations checked
> Domain code(.java) checked
>
>
> Thanks,
> --James
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to