facebook

EntityManagerHelper.log

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #328094 Reply

    kbhuffaker
    Member

    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.

    #328117 Reply

    support-swapna
    Moderator

    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@genuitec.com with subject ATTN : SWAPNA along with a reference to this post.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: EntityManagerHelper.log

You must be logged in to post in the forum log in