aspose file tools*
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic
Author

How to Read Delete modify and insert using JPA

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
Hi,

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.

Regards,
Rakesh


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

What?!


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

Joined: Mar 24, 2008
Posts: 3855

Please continue the discussion in your other thread.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Read Delete modify and insert using JPA