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