[hibernate-issues] [Hibernate-JIRA] Updated: (HV-42) Reference Documentation: broken example

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Feb 12 08:18:39 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated HV-42:
--------------------------------

    Component/s:     (was: documentation)
                 legacy

Move issue into legact component. This issue relates to the pre 4.x codebase.

> Reference Documentation: broken example
> ---------------------------------------
>
>                 Key: HV-42
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-42
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: legacy
>            Reporter: Robert Spielmann
>            Priority: Trivial
>
> The Hibernate Validator Reference Guide (Hibernate Validator 3.0.0.GA) contains  examples for writing custom annotations and validators, section 1.4 "writing your own constraints". There, it says that the class CapitalizedValidator implements Validator<Capitalized> and PropertyConstraint. The example class, however, does not implement the "apply" method. Thus, the example class does not compile.
> Additionally, the class "Capitalize" (containing constants like FIRST) is not defined anywhere. This leaves the example incomplete and thus - unless you quickly implement this class - unsuable for practical experiments.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list