MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kbhuffaker
Post subject: EntityManagerHelper.log  PostPosted: Jul 11, 2012 - 04:35 PM



Joined: Jul 11, 2012
Posts: 2

I'm having an issue where I'm using hsqldb and jpa. I'm trying to do a simple "findById" or any other DAO call that uses the EntityManagerHelper class.

Calling the findById method the following code gets called. Please note that this code is from my DAO class. When the method is ran it errors out on the line with:

EntityManagerHelper.log("saving TranslationJob instance", Level.INFO, null);

public void save(TranslationJob entity)
{
EntityManagerHelper.log("saving TranslationJob instance", Level.INFO, null);
try
{
EntityManagerHelper.beginTransaction();
getEntityManager().persist(entity);
EntityManagerHelper.commit();
EntityManagerHelper.log("save successful", Level.INFO, null);
}
catch (RuntimeException re)
{
EntityManagerHelper.log("save failed", Level.SEVERE, re);
throw re;
}
}

Any help would be appreciated.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jul 12, 2012 - 05:54 AM



Joined: Nov 11, 2010
Posts: 2154

kbhuffaker ,

I am afraid the issue is not clear to us.

Can you give us some more information to help understand the issue ?

1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?

2. What exact error message do you see at the line you mentioned ?

3. Please take a look at this JPA tutorial to help you get started :
http://www.myeclipseide.com/documentation/quickstarts/jpa/

4. Can you please list out the steps in detail you are following for us to help replicate the issue at our end ? Alternatively you can prepare a sample project with minimum files and send it to us to help us investigate it further.Please send the project to support@myeclipseide.com with subject ATTN : SWAPNA along with a reference to this post.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits