Hibernate

Integrating Database Layer – Shop Smart

Introduction In the previous post Spring Application Setup – Shop Smart we learnt how to setup Spring and JUnit for development environment using Eclipse. Let us now add a data access layer (commonly known as DAO layer) to our application, so that we can easily communicate with the database (HSQL or MySQL or any other database supported by Hibernate). Hibernate - A brief Discussion Hibernate is a huge topic and deserves its own series of posts. Here I would just like to point out few basic stuff about this framework. It all starts with the need of persisting an object. Imagine t...
Read More

Spring Application Setup – Shop Smart

Project Setup Following the previous article, one thing is very clear that our application will deal with users. The users can then be categorized into customers, sellers, operations, administrators and other. But at the core, all of them are users and they will need credentials to access the system. Also, we talked about various modes of authentication, but let us assume that the basic mode of authentication is database or file. So, let us define the user tables as shown below: SS_USER - The User Table We will keep it simple for now with the following columns: [crayon-5a30d1b9460c3238...
Read More

First Step for Application Development – Shop Smart

Shop Smart - Basic Layout If you are here, then I am sure that you know about the Shop Smart web application, if not then please visit Shop Smart web application. The first step for application development is to finalize the first phase of requirements. A minimal requirement so that at least we can start with something. We will start with the subset of the requirements mentioned here. To give you a feel of the basic layout, here is the wire frame. Few Components of the web application We need to understand the various components in the application, let us mention just three of them fo...
Read More

Shop Smart

Introduction After a lot of queries from friends and followers I am planning to start a tutorial where we will learn to build today's e-commerce web application from scratch. I do not expect any one to know anything other than the basics of Java programming language. It is alright if you do not know any UI programming (CSS, Javascript, JQuery etc). We will learn everything slowly and steadily. By the end of this tutorial the readers will completely understand various aspects of enterprise applications and will be able to build any sort of enterprise application with confidence and witho...
Read More

XML Free Spring Hibernate Configuration

Introduction After a lot of digging on the web I couldn't find any complete tutorial or example for an XML free Spring Hibernate Configuration tutorial to integrate Spring 3.X with Hibernate 4.X. So here I present a fully working simple tutorial for those who want to get rid of the XML configurations for Hibernate and Spring integration. Here is a link to my latest post, which develops a spring application from scratch, using annotation based spring, and hibernate. Purpose of the Article This article is to explain in the easiest possible manner the ways to integrate Hibernate 4.x with Sp...
Read More