[jboss-user] [EJB 3.0] - Re: Getting Exception - Cannot insert explicit value for ide
I used And my problem is resolved :) Thanks All :) Regards, Ruchika View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055026#4055026 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055026 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Getting Exception - Cannot insert explicit value for ide
Also i am connecting to SQL sever 2000 My persistence.xml is java:/SCMSSQLDSS com.j3ltd.server.entities.Person com.j3ltd.server.entities.Address I am using SQL Server2000, but am using "org.hibernate.dialect.MySQLDialect" in persistence.xml I am not sure if that is an issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055019#4055019 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Getting Exception - Cannot insert explicit value for ide
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 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user