Hi,
I am Ramu,i am using Ejb3.0,jsf,jboss4,2,linux-os for my current project.
i am getting the following error when i try to add a new project .the
Exception is as follows
21:46:15,533 FATAL [application] javax.ejb.EJBException:
javax.persistence.PersistenceException: org.hibernate.HibernateException: The database
returned no natively generated identity value
javax.faces.el.EvaluationException: javax.ejb.EJBException:
javax.persistence.PersistenceException: org.hibernate.HibernateException: The database
returned no natively generated identity value
.........................................
..........................................
And My Project entity code is as follows
@Entity
@Table(name = "PROJECT")
public class Project implements Serializable {
private int project_Id;
@Id
@GeneratedValue(strategy = GenerationType.AUTO, generator =
"projectid_sequence")
@SequenceGenerator(name = "projectid_sequence", sequenceName =
"PROJECTID_SEQ")
@Column(name = "PROJECT_ID")
public int getProject_Id() {
return project_Id;
}
public void setProject_Id(int project_Id) {
this.project_Id = project_Id;
}
can any body suggest me where i am doing mistake.
Thanks
K Ramu
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209770#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...