TweetI ran into an issue running some DBUnit tests trying to seed a database where tables do not have primary keys such as CollectionTables in JPA. This blog illustrates how to the http://www.dbunit.org/properties/primaryKeyFilter property to refresh a table that do not have primary keys. You can basically choose the columns to pseudo ignore during processing. Link [...]
READ MORE »Posts tagged DBUnit
No subclass matches this class; for this Aggregate mapping with inheritance.
TweetNo subclass matches this class [class com.baselogic.test.CustomerFixture$2$1] for this Aggregate mapping with inheritance I have been writing a chapter for my new book “Java EE6 Cookbook for Securing, Tuning and Extending Enterprise applications” today, and I ran across an interesting error based on a JPA testing pattern. Link to this post!
READ MORE »Weblogic 10.3 hangs on JNDI data source lookup during deployment
TweetI have been working on a Spring based web application for a couple weeks. This application uses Hibernate Generic DAO’s with a JNDI template via spring to create the data source. This procedure works very well with DBUnit and Spring to test all of my data access objects in isolation and to get very high [...]
READ MORE »Common Hibernate JPA Data Services Component
TweetI have been using Hibernate JPA, with a Java Generics based data access layer for some time now. But each time I go to a new project, I find that I have to do quite a bit of rework just to integrate this component. So what I wanted to do, is find a way to [...]
READ MORE »PersistenceException issue with Cobertura and the hibernate3-maven-plugin
TweetI have been using the hibernate3-maven-plugin for some time with a good deal of success in unit testing my data access layers through dbunit. I always separate my data access into a separate module, called data-services, for many reasons. Mostly so I can separate my testing to just database integration testing, and not unit testing [...]
READ MORE »
