Viral Patel

Hibernate One To One Mapping Tutorial (XML Mapping)

Hibernate One To One Mapping Tutorial (XML Mapping)
Let us understand how One-to-one mapping works in Hibernate. Following is a simply yet concept building example where we will understand One-to-one mapping in Hibernate framework using XML Mappings. We will use two tables "employee" and "employeedetail" which exhibits one-to-one relationship. Using Hibernate we will implement this relationship.Tools and technologies used in this article:Java JDK 1.5 above MySQL 5 above Eclipse 3.2 above Hibernate 3 above Maven 3 ...

Hibernate Hello World example using Annotation

Hibernate Hello World example using Annotation
In this tutorial we will write a CRUD application in Hibernate using Java 5 Annotation. For this we will use our previous tutorial Hibernate Maven MySQL hello world example (XML Mapping) as base and convert it from XML Mapping to Annotation.Tools and Technologies used:Java JDK 5 or above Eclipse IDE 3.2 or above Maven 3.0 or above Hibernate 3.0 or above MySQL 5.0 or above1. Database CreationFor ...

Hibernate Maven MySQL Hello World example (XML Mapping)

Hibernate Maven MySQL Hello World example (XML Mapping)
In this tutorial, we will try to write a small hello world program using Hibernate, MySQL and Maven. We will create a Java project using Maven and will then try to add Hibernate on it.Following are the tools and technologies used in this project.Java JDK 5 or above Eclipse IDE 3.2 or above Maven 3.0 or above Hibernate 3.0 or above MySQL 5.0 or above1. Database CreationFor this tutorial, ...

Introduction to Hibernate framework

Introduction to Hibernate framework
Hibernate was started in 2001 by Gavin King as an alternative to using EJB2-style entity beans. Its mission back then was to simply offer better persistence capabilities than offered by EJB2 by simplifying the complexities and allowing for missing features.Early in 2003, the Hibernate development team began Hibernate2 releases which offered many significant improvements over the first release.JBoss, Inc. (now part of Red Hat) later ...

Redirect your homepage /+ URL to your Google + profile

Redirect your homepage /+ URL to your Google + profile
While lot of people are stuggling getting into this new social network, I was among the lucky one who got very early access, thanks to a friend working with Google.I loved Google+. After so many failures in Social domain, Google has finally unleashed a product that can definitely take Facebook head on. While I follow ...

How to iterate HashMap using JSTL forEach loop

JavaServer Tag library is one of the most used JSP tag library out there. I have used it almost in all of my JEE based projects. The best feature probably is the Iterator API in JSTL tag library.Here is a small code snippet which you might not know. Its very easy to iterate Lists using JSTL. For example://Java List<String> cityList = new ArrayList<String>(); cityList.add("Washington DC"); cityList.add("Delhi"); cityList.add("Berlin"); cityList.add("Paris"); cityList.add("Rome");request.setAttribute("cityList", cityList);//JSP <c:forEach ...
Tags: , ,

How to use Dropbox as an SVN repository

How to use Dropbox as an SVN repository
Recently, the popular Cloud based startup Dropbox is getting lot of attention on Internet. It is a free file synchronization/backup service where you can backup, save and share files. Dropbox gives 2 GB of free space to every user where one can save / backup their files.One of the interesting usage of Dropbox can ...

Introducing Cache support in Spring 3.1 M1

Introducing Cache support in Spring 3.1 M1
Spring 3.1 M1 is out with some very useful features. One of the coolest feature in the latest release is comprehensive Caching support!Spring Framework provides support for transparently adding caching into an existing Spring application. Similar to the transaction support, the caching abstraction allows consistent use of various caching solutions with minimal impact ...

Create a Clearable TextBox with jQuery

Create a Clearable TextBox with jQuery
Recently I came across a wonderful article by David Walsh on Clearable Textboxes with Dojo Toolkit . This is a simple implementation where a clear button (x) added in a textbox which lets user to clear the content of the textbox. I have seen this simple feature in many websites and feel its very ...

jQuery: Get the Text of Element without Child Element

While writing code in jQuery, I often use .text() method to get the content of any element from DOM. This function is straight forward, it strips off all the html element from a selected element and returns the remaining text.So for below element the .text() method will return "A quick brown fox".<div id="foo"> A quick brown fox </div> <script> $("#foo").text(); ...
Page 3 of 2712345...1020...Last »
Copyright © 2012 ViralPatel.net. All rights reserved.