Home » Author Archives: Yatin

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.

Hibernate Projections Tutorial

In hibernate; developers can implement the Projection interface to read the partial entity or entities from the relational database. In this tutorial, we will explore the use of Projection interface available in the org.hibernate.criterion package of the Hibernate framework. Table Of Contents 1. Introduction 1.1 Hibernate Annotations 1.2 Hibernate Criteria 1.3 Projections in Hibernate 1.4 Download and Install Hibernate 1.5 ...

Read 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 »

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 »

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 »

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 »

Hibernate Persist Example

In hibernate; an entity or a record can be saved in a database using the save(), persist(), or the saveOrUpdate() method. In this tutorial, will explore the use of persist() method to commit an entity to 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 ...

Read More »

Hibernate @NamedQuery Annotation Example

In hibernate; developers can create the Named Queries that is a group of query statements. This tutorial will explore the use of @NamedQueries annotation 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 Java-based ORM tool that provides the framework for ...

Read More »

Spring static factory-method Example

In spring, developers can create a bean (or the object instantiation) by invoking the static-factory-method. This tutorial will explore the use of factory-method attribute in the spring configuration file. The factory-method attribute is used when the factory-method is static in nature 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of ...

Read More »

Spring init-method and destroy-method Tutorial

Sometimes when the spring beans are created developers need to perform the initialization operations and the cleanup operations before the bean is destroyed. In the spring framework, we can use the init-method and the destroy-method tags in the bean configuration. This tutorial will explore these tags to briefly understand the initialization and destruction. Table Of Contents 1. Introduction 1.1 Spring ...

Read More »