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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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


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

Joined: Mar 24, 2008
Posts: 3825

Please continue the discussion in your other thread.

[How to ask questions] [Twitter]
It is sorta covered in the JavaRanch Style Guide.
subject: How to Read Delete modify and insert using JPA