Vaadin Tip: Lazy Loading and Item Identity
When using grids, trees or any other of multi-valued component with Vaadin you often want to display data from a database table and typically you have more than a few rows in the[...]
Type Safe SQL in Java with jOOQ
No matter if you are using frameworks like JPA, MyBatis or Spring Data JDBC you always end up declaring the SQL statements as a Java String.
Type Safe SQL in Java
No matter if you are using frameworks like JPA, MyBatis or Spring Data JDBC you always end up declaring the SQL statements as a Java String. Strings, String, Strings No matter if[...]
Java Persistence Done Right
When it comes to accessing relational databases with Java, people usually think of two options: SQL or ORM
Introduction to Database Migrations with Spring Boot and Flyway
If you are working with Spring Boot there are several ways to initialize the database.
How to JOIN two Entities without Mapped Relationship
Often you don’t want to map all relationships in an entity model (a blog post about this topic in detail will follow).
Inheritance in JPA
Relational databases have tables and columns and object-oriented programming languages have classes and fields but they also provide inheritance. Relational databases have tables[...]
JPA Inheritance Strategies
Relational databases have tables and columns and object-oriented programming languages have classes and fields but they also provide inheritance.
Should you use Enums with JPA?
With JPA it’s possible to map Java enums to columns in a database table using the Enumerated annotation With JPA it’s possible to map Java enums to columns in a database table[...]
JPA Enums: Mapping Strategies and Trade-Offs
With JPA it’s possible to map Java enums to columns in a database table using the Enumerated annotation.