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 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

update using JPA

Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
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

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

Any help

I agree. Here's the link:
subject: update using JPA
It's not a secret anymore!