Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Not able to get the inserted Entity after Query.getSingleResult(INSERT INTO..... VALUES......) (This issue happens with JPA through Eclipse Link.)
Not able to get the inserted Entity after Query.getSingleResult(INSERT INTO..... VALUES......) [message #1067157] Sat, 06 July 2013 18:53
Amrit Debasis is currently offline Amrit DebasisFriend
Messages: 3
Registered: July 2013
Junior Member
Basically My requirement is to insert record into Oracle DB table, in which the PK column has to be filled by a SEQ.NEXTVAL

I want to insert record by, Query query = EntityMAnager.createNativeQuery(INSERT ).
After the insertion, m using query.getSingleResult() to get the inserted record along with the PK (has been inserted by SEQ.NEXTVAL during insertion);

During the execution of query.getSingleResult() stmt, I can see the new record in DB,
But, in my application it gives me invalid sql stmt exception.

Please suggest me, whether m in the right track else let me know how can I get it resolved ?

Thanks in Advance.



Amrit.
Previous Topic:Supported MCU list for Codesourcery
Next Topic:Eclipse- tomcat deployment
Goto Forum:
  


Current Time: Sat Dec 21 15:54:39 GMT 2024

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

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

Back to the top