[jboss-user] [EJB 3.0] - Re: [JDBCExceptionReporter]'last_insert_id' is not a recogni

itsme do-not-reply at jboss.com
Fri Jun 15 06:56:44 EDT 2007


you could try to create a wrapperservice, which creates your id instead of doing it by using hibernate. the service could look something like this:

  | public Long createId(String entity){
  | //read current value
  | //increment that
  | //write back to database
  | //return original value to caller
  | }
  | 
This creates a simple ID-Service with no dependancies. Don't forget to remove the annotation for the strategy. If that works probably  there is something wrong in the combination of hibernate and ms sql server.

regards

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

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



More information about the jboss-user mailing list