Article
In this article, we'll dive into Inheritance Mapping with JPA and Hibernate in Java. The Java Persistence API (JPA) is the persistence standard of the Java ecosystem. It allows us to map our domain model directly to the database structure and then gives us the flexibility of only manipulating objects...
François Dupire
Application properties may vary in different environments like how the hosts on your QA environment may vary from your local and production environments. Using Spring Boot, different environments can be configured and updated separately without affecting other environments with the use of property files. In this article, we'll be demonstrating...
Rayven Yor Esplanada
In this tutorial, we'll be taking a look at how to convert a JSON object into a Java Object using Jackson, an extremely popular data-binding library for Java. Specifically, we'll be working with this JSON object: { "name":"David", "position":"Software Engineer", "...
David Landup
In this tutorial, we'll take a look at how to sort a HashMap by key in Java. Let's go ahead and create a simple HashMap: Map<String, Integer> unsortedMap = new HashMap(); unsortedMap.put("John", 21); unsortedMap.put("Maria", 34); unsortedMap.put("Mark"...
In this tutorial, we'll take a look at how to sort a HashMap by value in Java. Let's go ahead and create a simple HashMap: Map<String, Integer> unsortedMap = new HashMap(); unsortedMap.put("John", 21); unsortedMap.put("Maria", 34); unsortedMap.put("Mark"...
YAML stands for YAML Ain't Markup Language, it is a data-serialization language most commonly used for specifying project configuration details. The main motivation behind YAML is that it is designed to be in a format which is humanly friendly. With a glance we can get an understanding of the properties...
Taimoor Choudhary
A* is a heuristic path searching graph algorithm. This means that given a weighted graph, it outputs the shortest path between two given nodes. The algorithm is guaranteed to terminate for finite graphs with non-negative edge weights. Additionally, if you manage to ensure certain properties when designing your heuristic it...
Darinka Zobenica
Form Data Validation is a very common, and rudimentary step in building any web application with user input. We want to make sure that certain ranges are respected, and that certain formats are followed. For example, we'll want to make sure that the user isn't -345 years old, or that...
Alex Chirea
Printing an array is a quick way to give us visibility on the values of the contents inside. Sometimes the array values are the desired output of the program. In this article, we'll take a look at how to print an array in Java using four different ways. While the...
Mohamed Echout
© 2013-2025 Stack Abuse. All rights reserved.