[
https://issues.apache.org/jira/browse/OPENJPA-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pinaki Poddar resolved OPENJPA-349.
-----------------------------------
Resolution: Fixed
> 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
>
> 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.