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
EclipseLink (2.4)
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.


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

Current Time: Sat Jul 20 14:10:22 GMT 2024

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

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

Back to the top