users@glassfish.java.net

Re: JPA + webservice do not mix

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 May 2007 07:02:02 PDT

Hello,

what type of fetching have you set in the relationship in Entity? To get all related Objects by calling your method you need to set someting like

@OneToOne(
   fetch=FetchType.EAGER,
   ...
)

bests

Sascha
[Message sent by forum member 'fermat42' (fermat42)]

http://forums.java.net/jive/thread.jspa?messageID=219251