-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem with Hibernate / JPA / HSQLDB
PostPosted: Sun Jul 18, 2010 4:14 pm 
Newbie

Joined: Sat Jan 07, 2006 10:04 pm
Posts: 5
Hi,
I am trying to "SET SCRIPTFORMAT COMPRESSED" to my underlying HSQLDB but get an exception:
Code:
user lacks privilege or object not found: SCRIPTFORMAT

I am trying the following:
Code:
    EntityManager em = getEntityManager();
    em.getTransaction().begin();
    em.createNativeQuery("SET SCRIPTFORMAT BINARY").executeUpdate();
    em.createNativeQuery("SET SCRIPTFORMAT COMPRESSED").executeUpdate();
    em.getTransaction().commit();

Code:
  <property name="hibernate.connection.username" value="sa" />
  <property name="hibernate.connection.password" value="" />
  <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />
  <property name="hibernate.hbm2ddl.auto" value="create" />

The DB is initialized automatically on startup and I am trying this as the first statement after auto-initialization. Can anyone give me a hint what I am missing?

Thanks and Best Regards,
Tobias


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.