You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Eddie Man (JIRA)" <ji...@apache.org> on 2007/09/05 11:10:33 UTC
[jira] Created: (OPENJPA-349) No object inserted if entity only
contain ID attribute and set to IDENTITY
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
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.
[jira] Assigned: (OPENJPA-349) No object inserted if entity only
contain ID attribute and set to IDENTITY
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinaki Poddar reassigned OPENJPA-349:
-------------------------------------
Assignee: Pinaki Poddar
> 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.
[jira] Updated: (OPENJPA-349) No object inserted if entity only
contain ID attribute and set to IDENTITY
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (OPENJPA-349) No object inserted if entity only
contain ID attribute and set to IDENTITY
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ 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.