Re: [Beankeeper-discussion] Support for enum?
Brought to you by:
demonsystem
From: Brautigam R. <de...@ne...> - 2010-01-01 18:55:16
|
Gil Levendel wrote: > Hi all, > > I've done some experimentation with Java enum + beankeeper and am > getting an exception when attempting to store an object containing on > enum (presumably because the enum has no public default constructor). > > I've dug around the mailing list archives, feature request list, etc but > haven't seen any thread on this topic. > > What's the best way to work around this...? Does the lack of a default > constructor mean that enum's will likely be difficult or impossible to > support? I would think, that support for enums should be easy. If you don't see it in the feature requests in sourceforge, please add it. I'm thinking it should be easy to just store an enum as a string and then unmarshall based in this string value. Which means we don't actually need to instantiate the enum object, just lookup the static value of it or something... > Thanks and Happy New Year! > Gil Back at'ya. Robert. |