Home » Author Archives: Petri Kainulainen (page 2)

Author Archives: Petri Kainulainen

Petri is passionate about software development and continuous improvement. He is specialized in software development with the Spring Framework and is the author of Spring Data book.

Creating a REST API with Spring Boot and MongoDB

spring-interview-questions-answers

This year I greeted Christmas in a different fashion: I was a part of the Java Advent Calendar. Let’s boot up for Christmas: Spring Boot is an opinionated framework that simplifies the development of Spring applications. It frees us from the slavery of complex configuration files and helps us to create standalone Spring applications that don’t need an external servlet ...

Read More »

Spring Data JPA Tutorial: Getting the Required Dependencies

spring-interview-questions-answers

Before we can create an application that uses Spring Data JPA, we need to get the required dependencies. This blog post identifies the required components and describes how we can get them by using Maven. Let’s get started. Additional Reading: If you are not familiar with Spring Data JPA, you should read the following blog post before you continue reading ...

Read More »

Spring Data JPA Tutorial: Introduction

spring-interview-questions-answers

Creating repositories that use the Java Persistence API is a cumbersome process that takes a lot of time and requires a lot of boilerplate code. We can eliminate some boilerplate code by following these steps:                 Create an abstract base repository class that provides CRUD operations for entities. Create the concrete repository class ...

Read More »

Spring from the Trenches: Using Null Values in DbUnit Datasets

dbunit-logo

If we are writing integration tests for an application that uses Spring Framework, we can integrate DbUnit with the Spring testing framework by using Spring Test DbUnit. However, this integration is not problem free. Often we have to insert null values to the database before our tests are run or verify that the value saved to the specific table column ...

Read More »

Getting Started with Gradle: Creating a Binary Distribution

gradle-logo

After we have created a useful application, the odds are that we want to share it with other people. One way to do this is to create a binary distribution that can be downloaded from our website. This blog post describes how we can a binary distribution that fulfils the following requirements:           Our binary distribution ...

Read More »

5 Things I Do to Stay Relevant

software-development-2-logo

I have noticed that some Finnish IT professionals are complaining that being just a good employee isn’t good enough anymore. These people argue that they cannot get a job because: Their work experience isn’t worth anything because they have no experience from technology X that is hot right now. They are too old (over 40). They have a life outside ...

Read More »

Writing Tests for Data Access Code – Data Matters

software-development-2-logo

When we write tests for our data access code, we use datasets for two different purposes:                   We initialize our database into a known state before our data access tests are run. We verify that the correct changes are found from the database. These seem like easy tasks. However, it is very ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close