java - Generating HSQLDB tables in memory from JPA/EclipseLink (no files) -


The JPA 2 with Aklipsl ink 2.4 to me, and I have to implement an in-memory database using Acskyueldibi I am trying. HSQLDB: File: I have been enabled to create a file implementation of HSQLDB using jdbc

 ; = Shutdown true; ./ database / test files_readonly = true   

but when I try to use jdbc: hsqldb: mem: tableName , I get the following message:


Staktrres:

  javax.persistence.PersistenceException: exception [EclipseLink-4002] (Eclipse persistence services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException internal exception: JavaksqlkSQLSyntaxErrorException: user without privileges or object not found: EFFECTIVITY error code: -5501 Call: impact bind receipt (HULL) value (?) = & gt; [1 parameter binding] Q: InsertObjectQuery (101) org.eclipse.persistence.internal.jpa.EntityManagerImpl.flush (EntityManagerImpl.java:804) on com.gdeb.touchtable.db.TestJPAEntities.testTTTouch (TestJPAEntities.java:93 Org.hsqldb.HsqlException :) .............. lacks user privilege or object not found: org.hsqldb.error.Error.error (unknown source) on the effectivity organization On. On OrgkhsqldbkParserDQLkreadTableName (Unknown Source) at OrgkhsqldbkParserDQLkreadRangeVariableForDataChange (Unknown Source) at hsqldb.error.Error.error organization OrgkhsqldbkSchemaManagerkgetTable (Unknown Source) (unknown source). OrgkhsqldbkParserCommandkcompilePart (Unknown Source org.hsqldb.ParserCommand.compileStatement on org.hsqldb.Session.compileStatement on hsqldb.ParserDML.compileInsertStatement org.hsqldb) (Unknown Source) (Unknown Source) at (Unknown Source). StatementMinegar.com on Org.hsqldb.Session.execute (unknown source) ... Pile (unknown source) ... 63 more   

The data I read, data m audio generated automatically It should be done, but I have only seen examples of hibernation. Is there any way to link the JPA data-model and use the HSQLDB's memory mode?

If there is a table then what is missing, then you will get the value of "build-tables" to make eclipselch With eclipselink.ddl-Generation property must be set. An example has been posted here:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -