Using alternative credentials for Liquibase in Spring Boot

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

Advertisements

No inserts using Hibernate and Spring

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

Mass convert a project to UTF-8 using Notepad++

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++

Batch rename and replace using Microsoft Powershell

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

Running unit tests with changing dependency versions

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