Home » Author Archives: Yogesh Mali

Author Archives: Yogesh Mali

Yogesh Mali
Yogesh currently lives in Minneapolis and works as a Senior Software Engineer. He has a masters degree in Computer Science from University of Minnesota, Twin Cities. At graduate school, he did research in programming languages because of his love for functional and object oriented programming. Currently he delves into more details of Java, web development and security. Previously he worked as a product manager to create web application for health insurance brokers. In his free time, he listens to music and writes fictional stories.

Hibernate Join Example

Join statements are used when one wants to fetch data from multiple tables of database. Hibernate provides support for join statements where one can write single query to fetch data from multiple tables easily. Hibernate is one of the few JPA (Java Persistence API) providers. Hibernate is extensively used for persistence layer of building an enterprise application. We will show ...

Read More »

Hibernate Insert Example

In this example, we will show how to use hibernate to insert data into database. Hibernate is one of the few JPA (Java Persistence API) provider. Hibernate is extensively used for persistence layer of building a enterprise application. We will configure our hibernate with hibernate.cfg.xml and then we will create an example mapping with example.hbm.xml. We will show how a ...

Read More »

Spring MVC Hibernate Tutorial

1. Introduction To develop web applications these days, we use Modern View Controller architecture. Spring provides MVC framework with ready components that can be used to develop flexible and loosely coupled web applications. MVC framework provides separation between input logic, business logic and UI logic. Model encapsulates the application data View is responsible for rendering the model data Controller is ...

Read More »

Hibernate Mapping Example

In this example, we will show you how to use hibernate with its mapping capability. We are going to show a one-to-many bi-directional mapping in hibernate using XML mappings. We will configure our hibernate with hibernate.cfg.xml and then we are going to create a mapping with example.hbm.xml . One-to-many relationship is the relationship in which each record in one table ...

Read More »

Hibernate Tutorial For Beginners with Examples

1. Introduction Hibernate is a high performance Object/Relational mapping (ORM) framework completely used in Java. Hibernate also provides query service along with persistence. This gives developers a way to map the object structures in Java classes to relational database tables. ORM framework eases to store the data from object instances into persistence data store and load that data back into ...

Read More »

Hibernate Configuration File Tutorial

In this example, we will show how to configure hibernate. Hibernate requires to know in advance where to find all the mapping information related to java classes and database tables. There are some other database related settings that hibernate needs which are provided through configuration file. These configuration settings can be provided programmatically OR through a configuration file called hibernate.cfg.xml ...

Read More »

How to Use Maven For Dependency Management

In this example, we will see how to use Maven for dependency management. Maven is a build manager tool and mostly used in java projects. Maven was built on a central concept of project object model (POM). Maven addresses two steps for any project – first how a project is built and second how the dependencies are described. 1. Environment ...

Read More »

Jetty Continuations Example

In this example, we will show how to use Jetty Continuations. Continuations are a way to implement asynchronous servlets. Added advantage of this feature compared to asynchronous feature of Servlet 3.0 api, is that it provides simple and portable interface. Jetty continuations suspend an HTTP request and releases the thread to the thread pool. It restarts suspended request on an ...

Read More »

Jetty Standalone Server Example

In this example, we will show how to use Jetty in Standalone mode. Jetty server can be used to deploy web servlets. We will show how a standalone jetty is configured and how a different configurations can be used to write a simple web servlet and deploy it on jetty server. Previously we saw how to use jetty in embedded ...

Read More »

Embedded Jetty Server Example

In this example, we will show how to use Jetty in embedded mode. Jetty can be used in standalone mode, but the main purpose behind building jetty was so that it could be used inside an application instead of deploying an application on jetty server. Generally you write a web application and build that in a WAR file and deploy ...

Read More »