-->
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: Tomcat hangs when integrated with Hibernate
PostPosted: Wed Mar 10, 2004 2:57 am 
Newbie

Joined: Wed Mar 10, 2004 2:42 am
Posts: 1
The frmawork we are using constitutes:
Tomcat4.1.8
Hibernate 2.1
Quick 4
JDK 1.4.1
Cocoon 2

The flow is like this :

We have a Registries.hbm.xml file . This file is used to specify the tables and field names of the respective tables along with filed data types and relationship between tables. Also we have Java classes w.r.t each table .These have constructors for fileds ,get set methods for retrieving the fields values from database and any specific functions written to query the database. The Registries.hbm.xml is used for mapping the tables with the respective Java classes. This file gets invoked when tomcat is started.

Now the problem statement is:

I have a view which constitutes 600 fields by joining 15 tables.So when I add the property descriptors for this view to the Registries.hbm.xml file, tomcat hangs when it is started at the point when mapping is done for this view.

How do I go about it?
[/b][/code]


Top
 Profile  
 
 Post subject: Re: Tomcat hangs when integrated with Hibernate
PostPosted: Wed Mar 10, 2004 6:45 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
ggupta_73 wrote:
I have a view which constitutes 600 fields by joining 15 tables.So when I add the property descriptors for this view to the Registries.hbm.xml file, tomcat hangs when it is started at the point when mapping is done for this view.


Can you post the log file section that shows Tomcat starting Hibernate and then stopping?

600 fields across 15 tables does not look like a good design for O/R mapping. The pattern I have seen in the past where this approach is used is to get a "query of everything" for search purposes. Hibernate can do better than that.


Sherman


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.