grab our rss feed  Follow us on twitter

s2sgateway

Practical Learning of Programming languages such us j2ee,java,jsp

To Download Our Web-Application Free E-book Enter your Mail Address Below

Enter your E-mail Address to Subscribe Tutorials and Free Projects:

  Powered by FeedBurner

Entries for the ‘Hibernate’ Category

Struts hiberanate integration tutorial part2

ShareToday i am going to give you a complete working struts-hibernate integration project.To see the part1 struts-hibernate tutorial click here
This project uses the hibernate plugin to create the session factory and uses hibernate mapping file hibernate.hbm.xml to create the necessary table values
The hibernte mapping xml file contains the below values

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate [...]

Comments

Error while initializing hibernate: An AnnotationConfiguration instance is required to use mapping class

ShareWhen you get this Error “error while initializing hibernate: An AnnotationConfiguration instance is required to use

This error comes when we are using annotation instead of hibernate mapping xml file to create the table.
First check to make sure these two packages are importes
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.cfg.Configuration;
And check the mapping class=”filename.java” is correctly assigned in struts-config.xml
After checking these [...]

Comments

Simple Struts-Hibernate Integration tutorial to insert values

ShareHi Everyone I am going to give a simple example to execute
Struts-Hibernate Integration

In this tutorial i am using 1.Mysql,2.Eclipse Free version from http://www.eclipse.org/downloads/ 3.Mysql Connector Jar
Everyone know struts is a MVC Architecture and Hibernate is Object relational Mapping tool it provides object/relational persistence and query service for java.So that it minimizes sql statements
Lets Look in [...]

Comments

First Hibernate example run in eclipse tutorial

ShareToday you are going to learn how to use hibernate in eclipse.
Learn more about hibernate by visiting here http://s2sgateway.com/j2ee/hibernate/
How to run the example project by us in eclipse
First download the project from here
hibernates2sgateway
After creating a project In eclipse there is a possibility to add hibernate capabilities by right clicking the project so that all jar [...]

Comments

Solution for java.lang.NoClassDefFoundError: javax/transaction/Synchronization

ShareHere I am going to give solution to the error “java.lang.NoClassDefFoundError: javax/transaction/Synchronization at org.hibernate.impl.SessionFactoryImpl.buildCurrentSessionContext(Sess
ionFactoryImpl.java:1036)”
Basically noclass definition found error comes when there is some jar files missing in classpath.Here
JTA(Java Transaction)
For this error you need to adjust the class path for compiling that is “jta.jar” is missing put jta.jar in lib folder to solve this problem.Happy [...]

Comments

Hibernate Errors and Solutions

ShareHibernate is one of the popular orm tool here we try to give solutions to most commonly occurring hibernate errors to view more Click hereTo Start Hibernate tutorial from scratchClick Here

Comments

Get start Hibernate

ShareIt is a popular open source object relational mapping tool for java platform.It provides powerful,ultra-high performance object/relational persistence and query service for java.
click here For Download the easily understandable hibernate project,in this project you can know how to setup “directory structure for hibernate” and how to “run hibernate in console” very easily.

Comments