[ 
https://issues.apache.org/jira/browse/OPENJPA-1554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Zowalla resolved OPENJPA-1554.
--------------------------------------
    Resolution: Fixed

Already fixed in an earlier release (720b8f7e7 (BooleanId)); closing.

> Boolean type primary key not supported
> --------------------------------------
>
>                 Key: OPENJPA-1554
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1554
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Donald Woods
>            Assignee: Dianne E. Richards
>            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 was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to