tree « Fetch « JPA Q&A

1. hibernate ignores fetch="join" on a collection when navigating the object tree with iterator

i have a forum with 1..n members each having 1..n articles, so this is my mapping:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"

<hibernate-mapping auto-import="true">

2. How to retrieve a nested tree structure of unknown depth

Hi, I'm using hibernate 3 and I have a table which contains nodes of a tree I want to display on the screen. I need to pass the tree data to my app as an XML document. My hibernate mapping file for this table is shown at the end of the email. I can get the hibernate code working fine to ...