How do I import javax.validation into my Java SE project?

前端 未结 3 1751
有刺的猬
有刺的猬 2020-12-24 07:59

I\'m trying to add constraints checking, as described here How to specify the cardinality of a @OneToMany in EclipseLink/JPA

3条回答
  •  粉色の甜心
    2020-12-24 08:17

    Here are the dependencies I'm using (with Maven):

    
      
      
        javax.validation
        validation-api
        1.0.0.GA
      
      
        org.hibernate
        hibernate-validator
        4.0.2.GA
      
    
    

    That you can get from this repository:

    
      
        jboss
        JBoss repository
        http://repository.jboss.org/maven2
      
    
    

提交回复
热议问题