openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <>
Subject [jira] Created: (OPENJPA-1554) Boolean type primary key not supported
Date Mon, 08 Mar 2010 16:01:27 GMT
Boolean type primary key not supported

                 Key: OPENJPA-1554
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.0.0
            Reporter: Donald Woods
            Priority: Minor

Originally reported by Tim McConnell -

The JSR 317 JPA 2.0 specs explicitly states that all java primitives (and primitive wrappers)
can be used for primary keys. However, OpenJPA does not allow the boolean/Boolean types as
primary keys or as part of compound primary keys.  Granted, this might not be a big deal since
using a boolean/Boolean primary key would allow only two database records. But it might also
be the case that a customer might want to use a boolean primary key to specify true/false
Production/Development environment in their database. Just want to document this discrepacny
(with the spec) for the sake of completeness.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message