File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 3900

Please continue the discussion in your other thread.

[How to ask questions] [Twitter]
subject: How to Read Delete modify and insert using JPA
It's not a secret anymore!