[OS-JIRA] Created: (CAY-283) Boolean type based on a Database SmallInt gets converted as a short when defined in a subclass

From: jira-norepl..bjectstyle.org
Date: Sun Feb 27 2005 - 15:55:16 EST

  • Next message: Andrus Adamchik: "Locking unit test failure"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-283

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-283
        Summary: Boolean type based on a Database SmallInt gets converted as a short when defined in a subclass
           Type: Bug

         Status: Assigned
       Priority: Critical

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.1

       Assignee: Andrus Adamchik
       Reporter: Derek Rendall

        Created: Sun, 27 Feb 2005 3:54 PM
        Updated: Sun, 27 Feb 2005 3:54 PM
    Environment: DB2 8.1.4, Windows XP, JDK 1.4

    Description:
    Our database uses SmallInts for boolean types. Normally this gets converted fine, except if the Boolean is defined in a subclass. In that case it comes across as a "Short" - not a Boolean. Thus I get a type cast exception when I try to access the variable via the getter method. Note: there doesn't appear to be a "Boolean" database type that I could force it to in the DBEntity (and let the JDBC driver handle it).

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sun Feb 27 2005 - 15:55:18 EST