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.

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.               ...

Read More »

Spring @Configuration Annotation Example

Spring 3.x framework provides support for moving the bean definitions out of the XML file into the Java class. This tutorial will explore the Spring-specific @Configuration annotation for spring annotation based configuration. 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 ...

Read More »

Spring MVC Pagination Example

Pagination is a mechanism to display a large number of records in different parts. In this tutorial, we will show how to implement the pagination functionality in the spring mvc framework. 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 ...

Read More »

Spring MVC ModelMap Example

In spring mvc, the org.springframework.ui.ModelMap object is used to pass the multiple values from the spring controller to the view. In this tutorial, we will show how to implement the org.springframework.ui.ModelMap object with the spring mvc framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the ...

Read More »

Spring RowMapper Example

Spring Jdbc framework provides a mechanism to fetch the records from a database using the query() method. This tutorial will explore the Spring Jdbc connectivity to fetch the records from the relational database. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the ...

Read More »

Spring Prototype Bean Scope Example

In the spring framework, developers can create beans using the in-built spring bean scopes. Out of five in-built scopes, Singleton and Prototype are primary and available in any type of IOC containers. This tutorial will explore the Prototype bean that returns a new bean instance for each and every request. 1. Introduction 1.1 Spring Framework Spring is an open-source framework ...

Read More »

Spring @Primary Annotation Example

Spring framework provides a mechanism to automatically inject the multiple dependencies of the same data-type. During the process, NoUniqueBeanDefinitionException is thrown indicating that only one candidate bean can be injected. This tutorial will explore the Spring-specific @Primary annotation that automatically gives a higher preference to a particular bean definition. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created ...

Read More »