Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11513

Seam-gen Generated entities - Length import is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 3.3.0.Beta3
    • 3.3.0.Beta2
    • hibernate, seam2
    • None
    • Hide

      1. Create seam2 project
      2. Add AS71 as runtime
      3. HSLQDB 1.8 as DB
      4. Generate entities from DB

      Show
      1. Create seam2 project 2. Add AS71 as runtime 3. HSLQDB 1.8 as DB 4. Generate entities from DB
    • Hide

      Just remove import and use QuickFix to add correct import

      Show
      Just remove import and use QuickFix to add correct import

      While generating entities (HB40,AS71), Length should be imported from:
      import org.hibernate.validator.constraints.Length;

      but it's imported non existing package:
      import org.hibernate.validator.Length;

      @Length(max = 200)
      public String getSurname()

      { return this.surname; }

      public void setSurname(String surname)

      { this.surname = surname; }

      Generated classes should lib according to defined runtime I guess

            dgeraskov Dmitry Geraskov (Inactive)
            mnovotny@redhat.com Marek Novotny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: