File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes update 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
Bookmark "update using JPA" Watch "update using JPA" New topic
Author

update using JPA

Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
Hi
I m using glassfish v2 and persistence in a web application.

Well i want to ask:-
How to update using em.createQuery in JTA

in detail:-
I m calling persistence codes using a normal java class file inside a web Application

I can select easily using this code: -


I want to update using JTA as the persistence.xml file has
transaction-type="JTA"

When i try using update using this code i get a nullPointerException without any traces in the log



Any help
Thanks
Pradyut>


Pradyut
http://pradyut.tk/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: update using JPA