openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie Man (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-349) No object inserted if entity only contain ID attribute and set to IDENTITY
Date Wed, 05 Sep 2007 09:10:33 GMT
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.


Mime
View raw message