-->
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: HIbernate Fectching problem
PostPosted: Thu Jan 27, 2011 6:42 am 
Newbie

Joined: Thu Jan 27, 2011 6:26 am
Posts: 4
Hi Friend i am facing problem in fetch records that why i join this forum.

my problem is that i having database around 800 tables and i generate hbm and Pojo using Hibernate reverse Engineering wizard.that tool generate mapping file and pojo fine.but when i am testing :-suppose i want to fetch Product from Product table .i write a query "from Product" then it will take long time to give the output..some time it give heap memory error.i know that n+1 select problem.but iam only testing.


one thing is that when i testing my generated mapping files with same project to myEclipse HQL editor it give output very fast.only it giving slow output when i am running the application.i am using only javaproject in myeclipse not any web project.and printing out put in console.

i don't understand what is the problem.......
can any one give me solution???
Thanks in advance.
Regadrs
Amit Rawat


Top
 Profile  
 
 Post subject: Re: HIbernate Fectching problem
PostPosted: Fri Jan 28, 2011 2:00 am 
Newbie

Joined: Thu Jan 27, 2011 6:26 am
Posts: 4
i think it will becoz of loadging mapping files.i have to many mapping files and pojo for that.....iam using 3.2 hibernate specification for that.......my DTD are
:<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

and iam using cdlib 2.1 so whats the problem.plz tell me......is it anything wrong with dtd specification.
Thanks
Amit Rawat


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.