Indeed, you get a hibernate proxy. You can change this behaviour by changing the mapping (switching off lazy retrieval) or get the real object from the proxy.
Thank you very much for your quick reply. I'm going to try your solution. But anyway, why do we get a proxy object ? The association to the node is not mapped as proxy. I know it is a hibernate question but still...
hibernate does lazy loading by default (which is good)
For many-to-one relation (of which this is an example) the lazy mapping property defaults to 'proxy'.
you can change this one to "false" and choose the fetching strategy you like (fetch mapping property) to change this.
Thanks a lot for these clear explanations.