[hibernate-dev] cacheable files
Sanne Grinovero
sanne at hibernate.org
Wed Apr 13 05:02:49 EDT 2011
2011/4/13 Hardy Ferentschik <hardy at hibernate.org>:
> On Wed, 13 Apr 2011 00:44:16 +0200, Steve Ebersole <steve at hibernate.org>
> wrote:
>
>> Hm, if we move to jaxb are those generated binding classes serializable?
>
> The classes are not serializable out of the box.
> It can be done though using a custom base class for all binding classes
> and some
> xjc (name of the plugin generating the bindings) magic.
> See
> http://stackoverflow.com/questions/1513972/how-to-generate-a-java-class-which-implements-serializable-interface-from-xsd-usi
>
> Not sure whether is is worth the effort though. IMO definitely a low
> priority task atm.
>
> --Hardy
I agree about the low priority. This would be most useful for things
like tooling, am I right? In that case might it make sense to pass the
*instance* directly, so you just skip the serialization overhead as
well?
More information about the hibernate-dev
mailing list