Category: Other Tutorials

Other Tutorials

Creating Custom Maven Archetype

Introduction: Maven archetypes are the project templates which can help us quickly create a maven starter project based on its type. It’s a great tool to bootstrap a maven project with least effort. There are wide options of archetypes available to us. Some of the popular archetypes include – maven-archetype-quickstart, maven-archetype-webapp, maven-archetype-archetype. To create a […]

2 comments Read More
Other Tutorials

Maven Dependency Scopes

Introduction: Managing dependencies is a core feature of Maven. When defining a maven dependency, the scope attribute defines the visibility of that dependency on different maven lifecycle phases such as build, test and run. The dependency scopes limit the transitivity of dependencies in any project, thereby affecting the classpath. Also, there are six different available […]

3 comments Read More
Other Tutorials

Hibernate Many To Many Tutorial

Introduction: In this tutorial, we’ll learn to define and use a many-to-many entity association using Hibernate @ManyToMany annotation. Context BuildUp: To follow along with this tutorial, let’s say we have two entities – Employee and Qualification: As we know, one employee can multiple qualifications. Also, there can be N number of employees with a specific […]

One comment Read More
Other Tutorials

Identifiers In Hibernate

Introduction: Identifiers in Hibernate model the primary key attribute of an entity. It helps us to uniquely identify a JPA entity. Every entity must define an identifier. Also, it can be either simple or composite. We can define a Hibernate identifier in several ways. In this tutorial, we’ll learn how to do so. Simple (Single-Valued) […]

One comment Read More
Other Tutorials

Maven Resources Plugin

Introduction: In this tutorial, we’ll learn about Maven Resources Plugin. We’ll start by learning what it is used for and finally learn to configure it in our own Maven project. So let’s start by understanding what’s a resource? Resources are non-source code files like xmls, images, property files etc that we use in our projects. […]

Be the First to comment. Read More
Other Tutorials

Guide to Maven Compiler Plugin

1. Introduction: Maven Compiler plugin is one of the core plugins of Apache Maven. It helps us to compile the sources of our maven project. It uses javax.tools.JavaCompiler as its default compiler. If we wish to use javac as the compiler, we can set forceJavacCompilerUse option value to true. 2.Compiler Plugin Goals: The Maven Compiler […]

Be the First to comment. Read More
Other Tutorials

KeyStore vs TrustStore In Java

Introduction: The two terms truststore and keystore are often confused and seem daunting to even many senior developers at first. In this tutorial, we’ll cover the differences between a truststore and a keystore. We also suggest you read our article on How Https Works – SSL/TLS, which will help you understand the basics of Http […]

Be the First to comment. Read More
Other Tutorials

Git Merge vs Git Rebase

Introduction: Git Merging and Rebasing are two important concepts in understanding how Git works. In this tutorial, we’ll learn the difference between git merge and git rebase. We’ll also learn the cases when we must avoid rebasing. Setup: To follow up with this tutorial, we’ll assume: We have two branches – master and feature. Post […]

Be the First to comment. Read More
Other Tutorials

Git – Adding changes to your last commit

Introduction: While using Git, we all have come across situations when we feel the need of modifying our last commit before we can finally push our code changes. In this quick tutorial, we’ll learn how can we amend our last commit which has not yet been pushed to the remote repository. Use Cases: Modifying Last […]

Be the First to comment. Read More
Other Tutorials

How HTTPS works – SSL/TLS ?

HTTPS - SSL vs TLS

What is HTTPS ? Why do we need it and how does it works? What is SSL/ TLS? Today we’ll be covering all the essentials of HTTPS that every developer must know. Introduction to HTTPS : As we all know, HTTP is the most common protocol used for the web-based communications. As the data travels […]

Be the First to comment. Read More