-->
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: what is this: Adding missing FROM-clause entry for table...?
PostPosted: Thu Oct 16, 2003 5:02 pm 
Beginner
Beginner

Joined: Thu Oct 02, 2003 5:06 am
Posts: 26
Location: Budapest, Hungary
When performing a delete from a hibernate session, it does everything fine, but gives me 1 row like this for each delete I requested:

[JDBCExceptionReporter] NOTICE: Adding missing FROM-clause entry for table "unilog"

What is this? where is it coming from?

my delete looks like:
Code:
String queryString="from UnilogLightWeight u where u.pillangoPeriodID=?  and u.unilogDate=? and u.unilogProductTypeID=? and unilog.profitcenterID=?";
Object [] objects = {this.pillangoPeriod.getPillangoPeriodID(), sdf.parse(tokens[2]), Long.valueOf(tokens[1]) , Long.valueOf(tokens[0])};

session.delete(queryString,objects,types);


my UnilogLightWeight.hbm file looks like this:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
        <class name="com.tibbett.controlling.hibernate.UnilogLightWeight" table="unilog">
                <id name="unilogID" column="unilogid" type="long" unsaved-value="null">
                        <generator class="sequence">
                            <param name="sequence">unilog_uid_sequence</param>
                        </generator>
                </id>
               
                <property name="amount" column="amount" length="8" type="double"/>
                <property name="unilogDate" column="unilogdate" length="4" type="date"/>
                <property name="profitCenterID" type="java.lang.Long" column="profitcenterid"/>
                <property name="unilogProductTypeID" type="java.lang.Long" column="producttypeid"/>
                <property name="measurementID" type="java.lang.Long" column="measurementid"/>
                <property name="categoryID" type="java.lang.Long" column="categoryid"/>
                <property name="activityID" type="java.lang.Long" column="activityid"/>
                <property name="groupID" type="java.lang.Long" column="groupid"/>
                <property name="pillangoPeriodID" type="java.lang.Long" column="pillangoperiodid"/>
                               
        </class>
</hibernate-mapping>


I'm going slightly mad here... I just don't see it... :(
Cheers


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.