Spring Roo
  1. Spring Roo
  2. ROO-1860

DBRE to map MySQL tinyint(1) and/or bit SQL types to java.lang.Boolean for GWT

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.2.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None
    • Environment:
      Windows 7, MySQL 5.0.91, GWT 2.1.1, Roo 1.1.0.RELEASE, STS 2.5.1.RELEASE

      Description

      DBRE maps MySQL tinyint(1) and bit types to boolean.
      GWT 2.1.1 requires java.lang.Boolean (for RequestFactory?).
      Request an option to support this scenario.

        Issue Links

          Activity

          Hide
          Chris Marshall added a comment -

          Other mappings that may be useful for GWT are:
          SQL blob type to java.sql.Blob or java.lang.Byte[] instead of byte[].
          SQL clob type to java.sql.Clob or java.lang.Character[] instead of char[].
          It appears that JPA supports all of these options via @Lob?

          Show
          Chris Marshall added a comment - Other mappings that may be useful for GWT are: SQL blob type to java.sql.Blob or java.lang.Byte[] instead of byte[]. SQL clob type to java.sql.Clob or java.lang.Character[] instead of char[]. It appears that JPA supports all of these options via @Lob?
          Hide
          Alan Stewart added a comment - - edited

          Mapped TINYINT(1) values to java.lang.Boolean in Git ID e0eb8145f5970d94db6fa32e16eb706bebd596da. Other values of TINYINT greater than 1 stay as java.lang.Short. Types.BLOB are mapped as java.sql.Blob already (not Byte[] or byte[]) and Types.Clob now mapped as java.sql.Clob instead of String, as per the recommendations of the spec.

          Show
          Alan Stewart added a comment - - edited Mapped TINYINT(1) values to java.lang.Boolean in Git ID e0eb8145f5970d94db6fa32e16eb706bebd596da. Other values of TINYINT greater than 1 stay as java.lang.Short. Types.BLOB are mapped as java.sql.Blob already (not Byte[] or byte[]) and Types.Clob now mapped as java.sql.Clob instead of String, as per the recommendations of the spec.
          Hide
          Alan Stewart added a comment -

          Need to provide accessor, isField() (returning field.booleanValue() for Boolean fields to keep backward compatibility

          Show
          Alan Stewart added a comment - Need to provide accessor, isField() (returning field.booleanValue() for Boolean fields to keep backward compatibility
          Hide
          Alan Stewart added a comment -

          Added boolean primitive accessor method for Boolean object fields. For a null-safe check, the method will return false if the field itself is null. Committed in Git ID 302f14aeba39c5ca29d29dc40d6ab6a56397ac2e

          Show
          Alan Stewart added a comment - Added boolean primitive accessor method for Boolean object fields. For a null-safe check, the method will return false if the field itself is null. Committed in Git ID 302f14aeba39c5ca29d29dc40d6ab6a56397ac2e
          Hide
          Alan Stewart added a comment -

          Code tidy-up in Git ID cb9b76419618063b70689d7949298f455278c39a

          Show
          Alan Stewart added a comment - Code tidy-up in Git ID cb9b76419618063b70689d7949298f455278c39a
          Hide
          Alan Stewart added a comment -

          And again in Git ID 13f7df5264f76483c51f61cedd5994177e529047

          Show
          Alan Stewart added a comment - And again in Git ID 13f7df5264f76483c51f61cedd5994177e529047

            People

            • Assignee:
              Alan Stewart
              Reporter:
              Chris Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: