- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Exporting database content for testing
Mon, 2012-01-30, 10:14
Dear all,
I have to perform some integration testing in an hibernate application in Scala and I would like to discuss with you if you had similar use cases.
I am wondering if any of you has ever "mocked" a database with some initial data, or if there is a smart way to do that (something like YAML used in PLAY)? I have about 1000 entities and it is too complicated to write the correspondent YAML, what I would like is basically being able to export data from an existing database or hibernate application into a format which can be injected into another database. (For example, an in memory hsqldb )
Thank you very much
Edmondo
I have to perform some integration testing in an hibernate application in Scala and I would like to discuss with you if you had similar use cases.
I am wondering if any of you has ever "mocked" a database with some initial data, or if there is a smart way to do that (something like YAML used in PLAY)? I have about 1000 entities and it is too complicated to write the correspondent YAML, what I would like is basically being able to export data from an existing database or hibernate application into a format which can be injected into another database. (For example, an in memory hsqldb )
Thank you very much
Edmondo
http://jailer.sourceforge.net/
It can subset production databases.
HTH,
ido
On Jan 30, 10:14 am, Edmondo Porcu wrote:
> Dear all,
>
> I have to perform some integration testing in an hibernate application in
> Scala and I would like to discuss with you if you had similar use cases.
>
> I am wondering if any of you has ever "mocked" a database with some initial
> data, or if there is a smart way to do that (something like YAML used in
> PLAY)? I have about 1000 entities and it is too complicated to write the
> correspondent YAML, what I would like is basically being able to export
> data from an existing database or hibernate application into a format which
> can be injected into another database. (For example, an in memory hsqldb )
>
> Thank you very much
>
> Edmondo