Function not supported from hibernate
I had similar Problem. After I update my dependencies (especially hsqldb) to:
<hibernate-core-version>4.1.5.Final</hibernate-core-version> <spring.version>3.1.2.RELEASE</spring.version> <hsqldb.version>2.2.8</hsqldb.version> ... <dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>${hsqldb.version}</version> </dependency>
my problem is resolved.
I'm having the same problem working with JPA + Hibernate + HSQLDB, but not spring.Here is my code:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("persistenceUnit");EntityManager em = emf.createEntityManager();EntityTransaction tr = em.getTransaction();tr.begin();em.persist(new MyEntity());tr.commit();em.close();emf.close();
That throws me the same This function is not supported
exception, but if I do it without the transaction, it doesn't. Like this:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("persistenceUnit");EntityManager em = emf.createEntityManager();em.persist(new MyEntity());em.close();emf.close();
The problem now, is that I don't see the changes reflected on database.