Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1122

Generate Entity Classes from Database wrong col lengh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.2, 11.3
    • None
    • db - DB schema
    • Windows, DB2

    Description

      Using the Dialog "New Entity Classes from Database" Step 4. "Mapping Option" -> "Attributes for Regenerating Tables" gives me wrong length for java.lang.String when using a Database with double byte string fields like DB2's GRAPHIC (using two bytes for one char).

      @Column(name = "MILITM", length = 12)

      instead of

      @Column(name = "MILITM", length = 6)

      This was resulting in a confusing DB2 ERROR -302 22001.

      Attachments

        1. image-2018-08-09-10-22-59-740.png
          127 kB
          Stefan Höltker

        Activity

          People

            Unassigned Unassigned
            swendelmann Stefan Höltker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: