Hibernate version: 

3.2

XFire version: 

1.2.6



I am wondering if someone has already tried to expose directly their Hibernate 
POJO as inputs and outputs of web services?



What are tips and tricks?



I've tried to build a web service with Xfire which has delegating some
pieces of work to an "Hibernate" DAO. Inputs and ouputs of my web
service are Hibernate POJO.



I faced following issues:
1-> Xfire (with Aegis dinding) was forcing collections eager loading even if 
the hibernate mapping was specifying lazy=true

2-> XFire seemed to not correctly manage Abstract classes (One table per 
concrete subsclass strategy)
3-> Xfire did not appreciate circular references which are quite
commons when you create bi-directionnal relationships with Hibernate


a) Do you have any idea/workarrounds? (I would like to avoid DTO)
I used Aegis tag @ignoreProperty to solve issues 1 and 3. It worked but it 
raised another issue:4-> If a property is masked for a getter web method then 
the property is also masked for its counterpart the setter web method...b) Do 
you know if JAX-WS has the same limitations?



Thanks and regards



Samuel
_________________________________________________________________
Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail, plus 
sûr, plus simple et plus complet !
http://www.windowslive.fr/hotmail/default.asp

Reply via email to