-->
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.  [ 2 posts ] 
Author Message
 Post subject: No rows returned!
PostPosted: Mon Oct 03, 2005 8:48 pm 
Newbie

Joined: Mon Oct 03, 2005 12:00 am
Posts: 9
I am trying out a simple example, I have rows in the person table but hibernate returns no data though the below query does return rows when I query the database.

19:46:04,343 INFO [STDOUT] Hibernate: select person0_.sem_person_id as sem1_ from SEM_PERSON person0_
19:46:04,375 INFO [ReportAction] [result list] > []
19:46:04,406 INFO [ReportAction] [listAllUsers] exiting

I ran the exact same query and it returns rows but the result list is empty

Please let me know what am I doing wrong?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 8:51 pm 
Newbie

Joined: Mon Oct 03, 2005 12:00 am
Posts: 9
Person.hbm.xml

Code:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
   "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
   <class name="test.domain.Person" table="SEM_PERSON">
      <id name="id" type="long" column="sem_person_id" unsaved-value="0"/>
   </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.  [ 2 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.