Home » Author Archives: Yatin (page 3)

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

Hibernate FlushMode Commit 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 default flush strategy 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 is a ...

Read More »

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

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 »