1 Reply Latest reply on Sep 26, 2009 1:09 AM by phantasmo

    Seam Gen Code Question

    ryanwaggoner

      Is there a legit reason for this, or do I not understand this right?


      Why are the column properties basically listed twice?




           @Column(name = "codeName", nullable = false, length = 50)
           @NotNull
           @Length(max = 50)
           public String getCodeName() {
                return this.codeName;
           }



      Thanks!

        • 1. Re: Seam Gen Code Question
          phantasmo

          @NotNull and @Length are Hibernate validator tags, and @Column is a standard JPA tag.
          According to my knowledge, currently only Hibernate validator can be used for input validation but I've read somewhere this is going to change in the next Seam version.