Month: December 2022

One of the exceptions that every Java Programmer must have faced is NullPointerException. They are hard to debug and cause unexpected termination of your application. To better handle NullPointerException, Java 8 has introduced the Optional class. In this post, I’ll explain how to use Optional in Java applications. Optional Overview The main benefit of the […]Continue reading

When you work in Enterprise Spring applications, you will often need to establish mappings between your entities. JPA one-to-many mapping is one such example. At the database level, one-to-many mapping means that one row in a table is mapped to multiple rows in another table. In this post, I’ll explain how to implement JPA one-to-many […]Continue reading