Hibernate Smoke Detector
There is a time in the life of every project when Database Administrator starts to look suspiciously at queries generated by our application. And then he (or she) sends us long list of queries that are not...
Problem with JPA, join column with null values and order by
Recently I’ve encountered a tricky and hard to spot problem with JPA2, joins with null values and ordering. But finally I managed to solve it and as I couldn’t find anything related to this issue in Google, I think...
Wicket Tutorial, part 1 – setting up project with Spring 3, JPA 2 and MySQL
Today I start my personal project Item Directory which will be developed as a element of Wicket Tutorial series on this blog. Item Directory will be a web application to help you manage your collections of items...
Solving com.mysql.jdbc. exceptions.jdbc4. CommunicationsException in Spring JDBC based application
Last week after releasing first version of Wicket, Spring and JDBC based application into production I noticed strange behavior. Everyday first attempt to enter the service caused unexpected exception. Quick glance...
Java Persistence API and Simple Audit
Recently for a first time have to create in the application functionality to track changes in the database made by users. There are some existing solutions and one of I found using Google is very interesting...
Eclipse and Problem With Auto Generated Equals()
Lately my colleague from job encountered following problem: JSF table <rich:dataTable> was using HashMap to represent data. This Map contained objects collected from the database. After saving new objects to...