Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-1613

HHH-3716 - Sybase - null values for columns mapped as "boolean" are persisted as 0 (zero) instead of NULL

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.0.GA_CP06, 4.3.0.GA_CP04, EAP 5.0.0.CR3, EAP 5.0.0.CR4 (FCS and BETA2), EAP 5.0.0.CR5, EAP 5.0.0, 4.2.0.GA_CP08, 4.3.0.GA_CP07, EAP 5.0.1.CR1, 4.2.0.GA_CP09, 4.3.0.GA_CP08, EAP_EWP 5.1.0, 4.3.0.GA_CP09
    • Fix Version/s: TBD
    • Component/s: Hibernate
    • Labels:
      None
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      There is a class in the unit tests, org.hibernate.test.where.NumericTrueFalseType, that could be used as a workaround for mapping boolean columns.

      To use the workaround, instead of mapping:
      type="boolean"
      use:
      type="org.hibernate.test.where.NumericTrueFalseType"

      Show
      There is a class in the unit tests, org.hibernate.test.where.NumericTrueFalseType, that could be used as a workaround for mapping boolean columns. To use the workaround, instead of mapping: type="boolean" use: type="org.hibernate.test.where.NumericTrueFalseType"
    • Release Notes Text:
      Hide
      Null values for columns mapped as <literal>Boolean</literal> in Sybase are persisted as <literal>0</literal> instead of <literal>null</literal>. The workaround for this issue is to map <code>type="org.hibernate.test.where.NumericTrueFalseType"</code> instead of <code>type="boolean"</code>.
      Show
      Null values for columns mapped as <literal>Boolean</literal> in Sybase are persisted as <literal>0</literal> instead of <literal>null</literal>. The workaround for this issue is to map <code>type="org.hibernate.test.where.NumericTrueFalseType"</code> instead of <code>type="boolean"</code>.
    • Release Notes Docs Status:
      Not Required

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              stliu Strong Liu
              Reporter:
              gbadner Gail Badner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: