-->
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: I am getting a Error deleting a row in my database
PostPosted: Thu Feb 18, 2010 1:58 pm 
Newbie

Joined: Sat Nov 14, 2009 10:03 am
Posts: 3
I am getting a Error

[STDERR] [Fatal Error] :-1:-1: Premature end of file.

when i am deleting a row in my mysql database.

Any one have any ideas?
Code:
This is the parent
<hibernate-mapping>
   <class name="com.file.exchange.vo.Folder" table="FOLDER">
   <id name="id" column="ID" type="java.lang.Integer">
         <generator class="increment"/>
   </id>
   <property name="folder" column="Folder" type="java.lang.String"/>
   <set name="items" cascade="all" lazy="false">
      <key column="Folder_ID" update="true" />
         <one-to-many class="com.file.exchange.vo.Files" />
   </set>
   </class>
</hibernate-mapping>

This is the child

<hibernate-mapping>
   <class name="com.file.exchange.vo.Files" table="FILE">
   <id name="id" column="ID" type="java.lang.Integer">
   <generator class="increment"/>
   </id>
   <property name="name" column="Name" type="java.lang.String"/>
   <property name="type" column="Type" type="java.lang.String"/>
   <property name="size" column="Size" type="java.lang.String"/>
   <property name="date_uploaded" column="Date_UpLoaded" type="java.lang.String"/>
   <property name="folder_id" column="Folder_ID" update="true" insert="true" lazy="false" type="java.lang.Integer"/>
   <property name="user_id" column="User_ID" lazy="false" type="java.lang.Integer"/>
   </class>
</hibernate-mapping>


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.