El problema es que cuando obtengo los articulos me trae un articulo
por cada foto que tiene en la BD, es decir, en la BD tengo un solo
articulo con muchas fotos y me trae tantos objetos del tipo Articulo
como fotos tenga el mismo.
Que esta mal del mapeo?
Gracias
Mauricio.
Pablo Ruggia
unread,
May 19, 2009, 3:45:38 PM5/19/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
En vez de @CollectionOfElements usa @OneToMany. Si todavia seguis teniendo el mismo problema manda como traes los objetos, query, load, etc.
Saludos !
Mauricio Ferreyra
unread,
May 20, 2009, 10:38:40 AM5/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
Agregue el filtro OpenSessionInViewFilter en mi web.xml y funciono!!