One of the projects I'm working uses Spring Boot to handle all database changes for each micro-service. One of the obvious requirements to make this work is a database user with DBA rights, otherwise it can not create, alter or drop tables. You could configure the default datasource to use such user, but this would … Continue reading Using alternative credentials for Liquibase in Spring Boot
I was setting up a simple side-project with Spring, Spring Data and Hibernate. My repositories are generated using Spring Data's jpa:repositories to save on development time and the database schema is generated using Hibernate, based on my JPA and JSR-303 annotated entities. However, one of the issues I encountered was that my repositories did not insert anything in … Continue reading No inserts using Hibernate and Spring
I'm currently studying for my Spring 3 certification and I came along this annoying AOP error: My JoinPoint is: and my Aspect looks like this: Believe it or not, the error lies in a single character: it's org.aspectj.lang.JoinPoint and not org.aopalliance.intercept.Joinpoint .
Lately, I had to convert the encoding of a multimodule maven project from our default Cp-1252 encoding to UTF-8. Changing the project settings is rather easy and there are multiple guides availble on the internet, so I won't re-invent the hot water. The most dificult task however was converting all our source files from Cp-1252 … Continue reading Mass convert a project to UTF-8 using Notepad++
Today I've release the oqt-maven-plugin v0.3 to the Sonatype OSS. Not much has changed since v0.2, I've just fixed 2 bugs and made very few other improvements. All info can be found on http://oqt.sourceforge.net/ . In earlier versions I've stated that you could add the plugin to the module containing the entities but this is … Continue reading oqt-maven-plugin v0.3 release
Some people don't like it, others do, but I create my webservice clients using a local copy of the WSDL definition which I create with Soap-UI. The downside of this method is that things get messy when the webservice becomes more and more complex: Last week I've reached a point where Windows wouldn't allow me … Continue reading Batch rename and replace using Microsoft Powershell
This is a little how-to guide which explains you how you can run a set of unit test on configurations with different versions of the same plugin. This can be very useful when creating your own library which depends heavily on an actively developed dependency of which many versions exists and are being used (eg. Spring, Hibernate, OpenJPA, … Continue reading Running unit tests with changing dependency versions