aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Persistence IllegalArgumentException in EntityManager
deploying multiple ejb module
How to create a Template for EntityManager in a WebApplication
MZs Notes - Pg 159
JBOSS CACHE second level caching for named query cache