Skip to main content



      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 14:53
Eclipse UserFriend
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.

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


Current Time: Mon Jul 07 15:00:06 EDT 2025

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

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

Back to the top