This year I attended CITCON and then I searched for a similar Java unconference/open-space. I got super lucky to be accepted at JCrete, but that’s another story. The reality is that unconferences are mind-blowing, but a bit hard to find if you don’t know what to look for. These are the unconferences that I currently … Continue reading Java Unconferences/Open-spaces
Category: Uncategorized
Testing JPQL queries straight from Intellij
In my current project, most of the queries are written in Java Persistence Query Language (JPQL). As with any *QL (that eventually gets translated to SQL), it’s cumbersome to do the translation of the *QL to SQL and vice-versa. This translation is generally done when you’re creating a new query or trying to debug an … Continue reading Testing JPQL queries straight from Intellij
Inspecting in-memory HSQLDB
Sometimes, for automatic testing of your Java application, you need to configure a DB connection. Most of the time the decision is to go for an in-memory database and HSQLDB is a prime candidate. Some other times, your tests will be failing and it would be great to see the DB status before the failure. … Continue reading Inspecting in-memory HSQLDB
Excluding Hibernate entities from auto-generation
Today I had to do something completely new with Hibernate, within the scope of a unit test. I had a group of entities and wanted to exclude one of them from the schema auto-generation (hibernate.hbm2ddl.auto=create). After spending a couple of hours trying out different things and reading Stackoverflow answers, I hit jackpot with this cool … Continue reading Excluding Hibernate entities from auto-generation