我是用MyEclipse中EJB的逆向工程 倒的实体BEAN 但是存储一直报错 查询删除没问题
Local Exception Stack: 
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Attempt to modify an identity column 'ID'. 
Error Code: -1
Call: INSERT INTO CLASSICCARS.TBRESUME (ID, READING, NAME, WALKING, SEX, EDUCATION, HOME, AGE, PHOTO) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [null, 1, 请输入您的姓名, , 0, , 0, 1, ]
Query: InsertObjectQuery(com.entity.Tbresume@13d3564)
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:319)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:566)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:760)到底该怎么解决啊,我的数据库里表的ID是自增的
这是他生成的类
package com.entity;import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;/**
 * Tbresume entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TBRESUME", schema = "CLASSICCARS")
public class Tbresume implements java.io.Serializable { // Fields private Integer id;
private String name;
private String sex;
private Integer age;
private String reading;
private String walking;
private String education;
private String home;
private String photo; // Constructors /** default constructor */
public Tbresume() {
} /** minimal constructor */
public Tbresume(Integer id) {
this.id = id;
} /** full constructor */
public Tbresume(Integer id, String name, String sex, Integer age,
String reading, String walking, String education, String home,
String photo) {
this.id = id;
this.name = name;
this.sex = sex;
this.age = age;
this.reading = reading;
this.walking = walking;
this.education = education;
this.home = home;
this.photo = photo;
} // Property accessors
@Id
@Column(name = "ID", unique = true, nullable = false)
public Integer getId() {
return this.id;
} public void setId(Integer id) {
this.id = id;
} @Column(name = "NAME", length = 25)
public String getName() {
return this.name;
} public void setName(String name) {
this.name = name;
} @Column(name = "SEX", length = 25)
public String getSex() {
return this.sex;
} public void setSex(String sex) {
this.sex = sex;
} @Column(name = "AGE")
public Integer getAge() {
return this.age;
} public void setAge(Integer age) {
this.age = age;
} @Column(name = "READING", length = 25)
public String getReading() {
return this.reading;
} public void setReading(String reading) {
this.reading = reading;
} @Column(name = "WALKING", length = 25)
public String getWalking() {
return this.walking;
} public void setWalking(String walking) {
this.walking = walking;
} @Column(name = "EDUCATION", length = 200)
public String getEducation() {
return this.education;
} public void setEducation(String education) {
this.education = education;
} @Column(name = "HOME", length = 25)
public String getHome() {
return this.home;
} public void setHome(String home) {
this.home = home;
} @Column(name = "PHOTO", length = 100)
public String getPhoto() {
return this.photo;
} public void setPhoto(String photo) {
this.photo = photo;
}}