Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Hibernate Criteria using Restrictions Example

In hibernate; developers can use the criteria query language to fetch the records from a relational database based on specific conditions. In this tutorial, we will explore the use of Restrictions with the Hibernate Criteria. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ...

Read More »

Java 8 Check if Array Contains a Certain Value Example

1. Introduction An array is a data structure which holds a fixed number of values of a single type. In this example, I will demonstrate how to check if an array contains a certain value in three ways: Convert an array to a Collection and check with the contains method Use Arrays.binarySearch to check when the array is sorted Convert an array ...

Read More »

MySQL NodeJS Example

1. Introduction In this post, we feature a comprehensive Tutorial on integrating MySQL in a simple NodeJS application and execute basic CRUD operations with the same. MySQL is one of the most used SQL databases in many of the world-enterprise applications due to its ability to manage transactions and the ACID-behaviour which is built into its core. One of the reasons MySQL ...

Read More »

Hibernate Lifecycle States Tutorial

In hibernate; it is important for developers to understand whether an object is saved in the database or not. In this tutorial, we will explore the different lifecycle states of an object in the Hibernate framework. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a ...

Read More »

Java Mediator Design Pattern Example

1. Introduction In this article, we are going to talk about a design pattern – Mediator Design Pattern that is widely used in various chat application(Whats App, Instagram, Facebook etc.). Mediator design pattern is  one of the design pattern that is mainly used to handle complex communications between related objects. This design pattern act as a mediator or middleman between two ...

Read More »

Java 8 Convert String to Char Array Example

1. Introduction The Java String class represents character strings. An array is a data structure which holds a fixed number of values of a single type. The char type is a primitive type which represents a single 16-bit Unicode character. It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65535 inclusive). The Character class wraps thechar type as a value in an object. An object ...

Read More »

Spring Security Custom Form Login Example

Welcome readers, in spring, the security module is considered important. It enables the developers to integrate the security features in a managed way. In this tutorial, we will show how to design a custom login form to implement the security in a spring mvc framework. 1. Introduction Model-View-Controller (MVC) is a well-known design pattern for designing the GUI based applications. ...

Read More »

SLF4J Logging Levels Example

This post is about the various logging levels available in SLF4J and how to extend it with Marker interface. This post utilizes Logback as the logging implementation for our examples. 1. SLF4J Tutorial – Introduction Before jumping into SLF4J, we will take a short look at the reason for its existence. Logging is an important aspect of any application. It ...

Read More »

Hibernate Merge Example

In hibernate; both merge() and update() methods updates an entity and can also affect the state of an object i.e. from detached to persistent. In this tutorial, we will explore the use of merge() method. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ...

Read More »

Hibernate Enum Type Mapping Example

In hibernate; developers can map the Java Enum type to a column in the database. In this tutorial, we will explore how a Java Enum type is stored in the database. 1. Introduction Object-Relational Mapping or ORM is the programming technique to map application domain model objects to the relational database tables Hibernate is a Java-based ORM tool that provides ...

Read More »