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

Michael Dick updated OPENJPA-349:
---------------------------------

    Fix Version/s: 1.2.0

> No object inserted if entity only contain ID attribute and set to IDENTITY
> --------------------------------------------------------------------------
>
>                 Key: OPENJPA-349
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-349
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0.0
>            Reporter: Eddie Man
>            Assignee: Pinaki Poddar
>             Fix For: 1.2.0
>
>
> If the entity only contains the ID column and the generated strategy set to 
> IDENTITY, then when saving this object, then will not insert record to 
> database.
> @Entity
> @Table(name="A")
> public class A {
>     @Id
>     @GeneratedValue(strategy=GenerationType.IDENTITY)
>     public int id;
> }

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

Reply via email to