[hibernate-dev] cacheable files

Hardy Ferentschik hardy at hibernate.org
Wed Apr 13 04:59:34 EDT 2011


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

> On 04/12/2011 02:41 PM, Hardy Ferentschik wrote:
>>
>>
>>
>>
>> On Apr 12, 2011, at 21:26, Steve Ebersole<steve at hibernate.org>  wrote:
>>
>>> Do we want to make caching of files a flag for processing all of the  
>>> xml
>>> files?
>>>
>>> Currently we have methods:
>>> addFile(String path)
>>> addFile(File file)
>>> addCacheableFile(String path)
>>> addCacheableFile(File file)
>>>
>>> Could we instead condense these and allow configuration of whether to
>>> try and cache xml files?
>>
>> Sounds like a good idea to me.



More information about the hibernate-dev mailing list