Home » Author Archives: Yatin (page 5)

Author Archives: Yatin

Yatin
The author is graduated in Electronics & Telecommunication. During his studies, he has been involved with a significant number of projects ranging from programming and software engineering to telecommunications analysis. He works as a technical lead in the information technology sector where he is primarily involved with projects based on Java/J2EE technologies platform and novel UI technologies.

Spring Security via Database Authentication Tutorial

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 explore how to design a custom login form and perform the user’s authentication using a database in the spring security.                 Table Of Contents 1. ...

Read More »

Spring Bean Life-Cycle Example

Sometimes when the spring beans are created developers need to perform the initialization and the cleanup operations before the bean is destroyed. To achieve this, we can use the InitializingBean and the DisposableBean interfaces in the spring model classes. This tutorial will explore these callback interfaces to briefly understand the initialization and destruction process in the spring framework. 1. Introduction ...

Read More »

Spring c-namespace Example

Spring framework provides several namespaces to simplify the xml configuration. In spring, developers can use the c-namespace to inject the constructor-based dependency and an alternative to using the <constructor-arg> tag. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered architecture, ...

Read More »

Spring p-namespace Example

Spring framework provides several namespaces to simplify the xml configuration. In spring, developers can use the p-namespace to inject the setter-based dependency and an alternative to using the <property> tag. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered architecture, ...

Read More »

Hibernate CascadeType.PERSIST Example

Greeting readers, in this tutorial, we will create two entity classes related to each other and we will perform the cascading operations between them. 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 the framework for mapping application domain objects ...

Read More »

Hibernate CascadeType.REMOVE Example

Greeting readers, in this tutorial, we will create two entity classes related to each other and will perform the cascading operations between them. 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 the framework for mapping application domain objects to ...

Read More »

Hibernate Optimistic Locking Example

In hibernate, Locking represents a mechanism to safeguard the records that can be simultaneously accessed to avoid the concurrency errors (i.e. when multiple users simultaneously update the records resulting in inconsistencies). Hibernate has two types of locking mechanisms i.e. Optimistic locking Pessimistic locking In this tutorial, we will explore the optimistic locking mechanism in the hibernate framework. 1. Introduction Object-Relational ...

Read More »

Hibernate Calling Stored Procedure Example

Stored Procedures are a set of compiled SQL statements residing in the database. In hibernate; there are three different approaches to call a stored procedure i.e. Query interface – createSQLQuery(. . . .); StoredProcedureQuery interface – createStoredProcedureQuery(. . . .); @NamedNativeQuery annotation In this tutorial, we will explore how to create a simple stored procedure in the MySQL database and ...

Read More »

Hibernate DateTime Mapping Example

In hibernate; @Temporal annotation is used to store java.sql.Time, java.sql.Date or java.sql.Timestamp in the database. In this tutorial, we will explore how to work with Timestamp using the xml and annotation configurations 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 »

Hibernate Manual and Always flush modes Example

In hibernate; flushing strategy is a process that controls how many times hibernate hits the database when it comes to writing operations. In this tutorial, we will explore the Always and Manual flushing strategies of 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 ...

Read More »