-->
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: Objects too large
PostPosted: Tue Sep 19, 2006 8:06 pm 
Newbie

Joined: Thu Sep 14, 2006 9:38 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.3

/**
* @return the tags
* @hibernate.list table="photo_gallery" lazy="true"
* @hibernate.collection-key column="galleryId"
* @hibernate.collection-index column="displayorder"
* @hibernate.collection-many-to-many class="com.wwtest.model.Photo" column="id"
*/

Appfuse 1.9.3

I'm getting a java.lang.OutOfMemoryError: Java heap space error whenever my collection has more than one element. I'm assuming it is because the Photo object contains an image. I tried increasing my memory with JAVA_OPTS="-XX:MaxPermSize=512m", but this didn't really work. I'm wondering if I can instead of loading the object just load a list of the id's, but at the same time keep the relationship. I'm new to hibernate and just can't figure out how to do this. I'd appreciate if someone could point me in the right direction. Please tell me if I'm not providing enough info


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.