Skip to content

1. Introduction

Matthijs Kok edited this page May 11, 2017 · 3 revisions

Alright so the goal of this page it that we learn the lancie-api repository. I assume you already know your Java.

To learn the Java8 specific streams and lambda's, this video is great! (and long!)

We are going to learn to use the Spring framework, the Lombok plugin, storing objects with the JPA and Hibernate.

In short:

  • The Spring framework handles the incoming and outgoing requests to the internet. It uses "mappings" to do so. When booting up Spring searches for these mappings and remembers where they are. When a request from a user comes in, Spring looks up which mapping corresponds to that URL and calls that method. Anything that method returns is returned to the user. This could be a HTTP status code, an object, or more.

  • Lombok is a plugin that reduces boilerplate code. It does so by using mappings. for example: if you add @Getter above a field in your class, Lombok will automatically generate a getter for that field for you to use. To view all the mappings that Lombok provides, follow this link.

  • Hibernate is an implementation of the JPA (Java Persistance API). It is a persistence framework that you can use in Java. It’s what allows you to write Java code (staying true to Object Oriented programming practices) and yet still be able to communicate with your database.

Clone this wiki locally