-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Database changes are ont reflecting
PostPosted: Thu Jul 30, 2009 1:04 am 
Newbie

Joined: Thu Jul 30, 2009 12:56 am
Posts: 1
Hi,
I am inserting some data into database using struts2 nad hibernate , but data is not reflecting in the front end util i restart the server . here is my hibernate.cgf.xml file :


<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.useUnicode">true</property>
<property name="connection.characterEncoding">UTF-8</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/ghschananwal?zeroDateTimeBehavior=convertToNull</property>
<property name="connection.username">root</property>
<property name="connection.password">password</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="current_session_context_class">thread</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<property name ="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

<mapping resource="net/ghschananwal/vo/Login.hbm.xml"/>
<mapping resource="net/ghschananwal/vo/NoticeBoard.hbm.xml"/>
<mapping resource="net/ghschananwal/vo/Student.hbm.xml"/>
<mapping resource="net/ghschananwal/vo/ClassGrade.hbm.xml"/>
<mapping resource="net/ghschananwal/vo/Achiever.hbm.xml"/>
<mapping resource="net/ghschananwal/vo/Comment.hbm.xml"/>

</session-factory>
</hibernate-configuration>



ANY HELP FROM ANYBODY ??


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.