tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Veronezi <thi...@veronezi.org>
Subject Re: OpenEJB Starup with SQL
Date Tue, 06 Jan 2015 20:53:38 GMT
Hi,
maybe you can use your own db file in tests.

http://stackoverflow.com/questions/7968067/startup-script-to-create-a-schema-in-hsqldb
http://hsqldb.org/doc/guide/ch01.html#N101A8
http://tomee.apache.org/embedded-configuration.html

[]s,
Thiago.


On Tue, Jan 6, 2015 at 3:10 PM, kenundrumz2100 <kenundrumz2100@gmail.com>
wrote:

> I have a pretty general question about utilizing the OpenEJB platform by
> itself to perform some out of container unit testing for my project. Some
> on
> my entities are annotated with a schema value and when using the HS DB that
> said schema does not exist before the container is built up and the
> entities
> are deployed out. This is causing the test cases to fail because the tables
> can not be created as there is no schema to create them in.
>
> The question: Is it possible to run some SQL against the HS DB before the
> container is created and the entities are deployed into it using the
> EJB3Container methodology to create the required schema so that the tables
> are made and the test cases can be executed? We would like to limit the
> number of XML configuration files required and prefer the dynamic
> code-based
> solutions if possible.
>
> Much appreciated in advance. If you have questions please let me know and I
> will try to elaborate more on the topic.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/OpenEJB-Starup-with-SQL-tp4673333.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message