Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » wrong id returned when inserting(wrong id returned when inserting)
wrong id returned when inserting [message #1462652] Wed, 05 November 2014 20:27
Robert Sutton is currently offline Robert SuttonFriend
Messages: 1
Registered: November 2014
Junior Member
Using
EclipseLink (2.4)
MSSQL(2008?)
OpenJDK 7
Ubuntu 14.04/12.04

When inserting a record into a table which has a trigger which does an insert into another table, EclipseLink is returning the id of the record inserted into the other table instead of the id for the record which I inserted.

I assume I need to get EclipseLink to use SCOPE_IDENTITY() instead of @@IDENTITY.

I would assume there is a switch to throw somewhere in EclipseLink to make this happen but I can not find any such thing.

Thanks



Previous Topic:Orderby NULL FIRST / LAST using Criteria API
Next Topic:EclipseLink ddlgen doesn't work in eclipse
Goto Forum:
  


Current Time: Fri Apr 26 21:52:36 GMT 2024

Powered by FUDForum. Page generated in 0.02914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top