Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Object Relational Mapping and the fly likes How to Read Delete modify and insert using JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic

How to Read Delete modify and insert using JPA

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115

I have a record in the database.
1 - I am reading this record using JPA into an Object.
2 - Then delete this record from the database.
3 - Now modify the state of the read object and then reinsert the record back into the database.
I found that steps 1 and 2 are working fine but step 3 is not working fine.
The records does not actually go into the database and no error is shown on the logs.
Where can be the problem guys.


Rakesh Kadulkar
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Maybe this post will help you: Tutorial Hibernate 3 with JPA 2.
reinsert the record back into the database


[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3881

Please continue the discussion in your other thread.

[How to ask questions] [Twitter]
Have you tried LearnNowOnline?
subject: How to Read Delete modify and insert using JPA