Home » Enterprise Java

Enterprise Java

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 »

Spring Integration Custom Transformer with RabbitMQ Example

RabbitMQ is an open source message broker which implements many protocols. It can be used for point to point, request/ reply or publish-subscribe messaging patterns and is cluster deployable for high availability and throughput. The key point to remember about RabbitMQ‘s messaging model is this: The producer sends messages to an exchange, which pushes them to queues. The two important ...

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

SLF4J Logging Levels Example

This post is about the various logging levels available in SLF4J and how to extend it with Marker interface. This post utilizes Logback as the logging implementation for our examples. 1. SLF4J Tutorial – Introduction Before jumping into SLF4J, we will take a short look at the reason for its existence. Logging is an important aspect of any application. It ...

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 »