[
http://opensource.atlassian.com/projects/hibernate/browse/HV-43?page=com....
]
Leonardo Pinho commented on HV-43:
----------------------------------
Ok, It is your decision but i guess it is almost impossible. The JPA, which is a
specification from Sun, read some annotation from a specific hibernate project. It does
not make sense for me...
Keeping the validator's spec like now I think you are going to lose many potencial
users, like me... IMHO.
Thanks anyway,
Leonardo
Hibernate Validator could load JPA annotations for validation
-------------------------------------------------------------
Key: HV-43
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-43
Project: Hibernate Validator
Issue Type: Improvement
Affects Versions: 3.0.0.ga, 3.0.1
Reporter: Leonardo Pinho
Priority: Critical
Hibernate Validator could load JPA annotations fields for validation, like at @Column
(javax.persistence.Column):
public class Test {
@Column(name="NAME", length=40, nullable=false)
private String name;
}
Otherwise I have to change the code to:
public class Test {
@NotNull
@Length(max=40)
@Column(name="NAME", length=40, nullable=false)
private String name;
}
And I got a redundant code... :(
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira