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.