[jboss-user] [EJB 3.0] - Re: Getting Exception - Cannot insert explicit value for ide

ruchi123456 do-not-reply at jboss.com
Sun Jun 17 05:34:40 EDT 2007


Also with somebody'd suggestion i changed my code to the following
----------------------
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false)
private Integer cNo;
----------------------

But now am getting errException
Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]'last_insert_id' is not a recognized function name.

Any suggestions?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055015#4055015

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055015



More information about the jboss-user mailing list