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

Length import is not correct when using AS71 and HB4 seam generating entity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 4.28.0.Final
    • 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
    • -

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              kaers@redhat.com Koen Aers
              jpeterka_jira Jiri Peterka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: