dbunit « JPA « Spring Q&A





1. Hibernate boolean true_false yields a char in MySql... sometimes?    stackoverflow.com

I've been enjoying Hibernate's "yes_no" notation for a while now. I use it a lot on active fields like so:

@Column(name = "active")
@Type(type = "true_false")
public boolean getActive() {
    ...

2. using AbstractTransactionalDataSourceSpringContextTests with Hibernate & DbUnit - inserted data not found    stackoverflow.com

All, I'm attempting to write a unit test for a Dao that uses Hibernate. I'm also using Spring, so I'm trying to extend AbstractTransactionalDataSourceSpringContextTests and also use DBUnit to insert ...

3. OutOfMemoryError: Trying to optimise Maven multi-module unit tests using HSQLDB, DBUnit, unitils, Hibernate, Spring    stackoverflow.com

I have a big multi-module Maven project with thousands of tests. Each test loads DAOs, services, etc using the SpringApplicationContext annotation. My unitils configuration looks like this:

database.driverClassName=org.hsqldb.jdbcDriver
database.url=jdbc:hsqldb:file:mytestdb
database.schemaNames=PUBLIC
database.userName=sa
database.password=
database.dialect=hsqldb
unitils.modules=database,dbunit,hibernate,inject,spring
# custom version of HsqldbDbSupport which calls ...

4. org.dbunit.dataset.NoSuchTableException: Did not find table 'xxx' in schema 'null'    stackoverflow.com

I know there have been discussions wrt to dbunit here. I have read most of them but I cant seem to find a solution to my problem. I have set up hibernate ...

5. DBUnit donìt reset sequences    stackoverflow.com

I have a system with Spring + Maven + JPA (Hibernate). I use Junit and DBUnit. I have an Entity with generated id: during tests it don't reset the sequence. How can ...

6. DB Unit Testing framework?    stackoverflow.com

In my project, I've used spring, jpa with PostgreSQL DB, I've lots of table in DB and I need to have Unit testing of all of them. Is there any framework which just ...

7. DbUnit framework to Test DAO layer    stackoverflow.com

Generally we are giving input file from setup() for inserting data so it will insert data every time for every test and finally clear it up after test. But these data is ...

8. DbUnit testing a PostgreSQL database using JPA without Hibernate or Spring    stackoverflow.com

I'm trying to write a Java EE 6 application using JPA but without using Hibernate or Spring. I used Netbeans to generate the JPA classes, and I created the tables in ...

9. Spring, Hibernate & DBUnit incompatibilities?    forum.springsource.org

Spring, Hibernate & DBUnit incompatibilities? Hi, We're using Spring & Hibernate, and trying to use Spring's autowire tests with DBUnit for our integration tests. However, we are having such problems that ...





10. Hibernate and DBUnit (How do I do it?)    forum.springsource.org

Hibernate and DBUnit (How do I do it?) hello to all. i've read this article on TSS. http://www.theserverside.com/tt/arti...pringandDBunit and i don't get it. at the momment, i use the real database ...

11. generate ddl from my dbunit hibernate configration    forum.springsource.org

generate ddl from my dbunit hibernate configration My project uses spring , hibernate,dbunit for orm dao unit testing. I am using maven to build my project. The dbunit testing I use ...

12. Unit Testing Spring/Hibernate Project with DBUnit    forum.springsource.org

Hi Guys, Here is an example project to unit test the persistence layer of your project built using Spring and Hibernate with DBUnit. This example project uses spring 2.5.x version. Please ...

13. Spring 3 with Hibernate and DbUnit - base class    forum.springsource.org

Spring 3 with Hibernate and DbUnit - base class Hello! I have this class to run a DbUnit test and I am using Spring 3 for Dependency Injection. Now the database ...