Hi!

To me it also sounds a bit better to have a Axis serializer (if such an abstraction do exist) do the job. Having hbm2java generate special DTO's for you to this purpuse is also ok, but remember that these DTO's cannot be used by hibernate as it requires you to use the Collection interface types (list, map, bag, etc.)

But thinking about it makes also wonder why Axis can't handle untyped lists ?! Can it only handle concrete arrays, or ? Best explanation is probably to show me an example of a POJO and the corresponding Axis compatible soap thingy - could you do that ?

/max

Dmitri Colebatch wrote:

Hey,

I haven't done this, nor needed to give it any thought before, but would it
be possible to write an Axis serializer that utilized the hibernate
codebase, specifically the meta-data about the classes, to serialize them to
soap friendly collections and so on?

I'm assuming you're not trying to distribute transactions or anything?
You're just after the value yeah?

my 2c.

cheers
dim

----- Original Message -----
From: "Josh Rehman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 11:45 AM
Subject: [Hibernate] Moving Hibernate objects with SOAP



Hello all,

I'd like to move Hibernate generated objects (generated with hbm2java,
of course) across the wire with SOAP.

There are two problems:

First, Hibernate generates collection accessors. This is great, but
these are, by necessity, untyped. The Axis serializer cannot handle this.

Second, it often comes to pass that we are only interested in a subset
of the object. In particular, we often do NOT want to move an entire
collection accross the wire. Unfortunately, the serializer will call all
accesors on the hibernate object, and CGLIB will, of course, do it's job
and get everything known about that object.

We have so far tried to solve these problems by writing an additional
code generator that creates so-called "Data Transfer Objects" (Fowler's
term, also abreviated DTO) that have a) typed array accessors, and b)
the ability to specify a subset of interesting properties. We aren't
quite done with this effort, but it's so far working out well. The DTOs
are generated by delegating work to an underlying hibernate class.

Has anyone faced and solved, these probelms? If so, I'd like to hear
about it. In particular, I was hoping that there is something obvious
that I may have missed.

With kind regards,
Josh Rehman



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.


http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01


_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel



------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to