-->
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.  [ 3 posts ] 
Author Message
 Post subject: Could not execute JDBC batch update
PostPosted: Mon Aug 05, 2013 7:37 am 
Newbie

Joined: Mon Aug 05, 2013 7:21 am
Posts: 1
Hi can any one help me to solve the problem,

here is my Registration.hbm.xml file

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.test.form.RegistrationBean" table="RegistrationTable">
<id name="empid" type="int" column="EMPID">
<generator class="assigned" /></id>
<property name="empname" column="empname" type="string" length="32" not-null="true"/>
<property name="pwd" column="password" type="string" length="32" not-null="true"/>
<property name="cpwd" column="cpassword" type="string" length="32" not-null="true"/>
<property name="email" column="emailId" type="string" length="32" not-null="true"/>
<property name="mobile" column="mobile" type="int" length="10" not-null="true"/>
<property name="sbu" column="sbu" type="string" length="32" not-null="true"/>
<property name="loc" column="location" type="string" length="32" not-null="true"/>
<property name="group" column="group" type="string" length="32" not-null="true"/>
<property name="project" column="project" type="string" length="32" not-null="true"/>
<property name="mngid" column="managerid" type="int" length="32" not-null="true"/>
<property name="mngname" column="managername" type="string" length="32" not-null="true"/>
<property name="mngmailid" column="manageremail" type="string" length="32" not-null="true"/>
</class>
</hibernate-mapping>


And Hibernate.cfg.xml
<session-factory>
<property name="hbm2ddl.auto">update</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.url">jdbc:mysql://localhost/cmc</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="show_sql">true</property>
<mapping resource="Purchase.hbm.xml"></mapping>
<mapping resource="Registration.hbm.xml"></mapping>
</session-factory>


Top
 Profile  
 
 Post subject: Re: Could not execute JDBC batch update
PostPosted: Thu Aug 08, 2013 2:17 am 
Senior
Senior

Joined: Tue Oct 28, 2008 10:39 am
Posts: 196
Some more details would be great...


Top
 Profile  
 
 Post subject: Re: Could not execute JDBC batch update
PostPosted: Wed Aug 14, 2013 1:23 am 
Newbie

Joined: Fri Jan 25, 2013 3:25 am
Posts: 5
Whats the problem?
post ur query in detail.


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

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.