Re: Mapping of a Set with enums

2010-01-18 Thread AsafM
For me, this didn't work. The Set eventually contained String objects. Here's how I solved it: I have a class called Customer which contains a a set of Service. The customer is saved in CUSTOMERS and the services in CUSTOMER_SERVICES. The Enum class public enum Service { CLEANING; } My

Re: Mapping of a Set with enums

2009-05-19 Thread Mike_
Hi Thanks for the help! Having the secondMap return strings and moving the typehandler to the result element in the first resultMap worked perfectly. Just not very easy to figure out, I've done it the way I initially tried with JavaBeans before which worked fine. Thanks again, Micke Mike_ w

Re: Mapping of a Set with enums

2009-05-18 Thread Kai Grabfelder
Hi Mikael, could you try to map creditEvents to a Set of Strings instead and see if this works? Regards Ka --- Original Nachricht --- Absender: Mikael Andersson Datum: 18.05.2009 23:52 > Hi > > I have a typehandler for the enum in the second result map which is > referenced from the Counterpa

Re: Mapping of a Set with enums

2009-05-18 Thread Mikael Andersson
Hi I have a typehandler for the enum in the second result map which is referenced from the CounterpartyHedgeVOResult result map. Do you mean that I should try having the second result map just return strings, and change the line in the first result map to this? : I'll give it a go tomorrow whe

Re: Mapping of a Set with enums

2009-05-18 Thread DelGurth
On Mon, May 18, 2009 at 7:40 PM, Mikael Andersson wrote: > Hi > > I'm having problems mapping to a property which is a Set of java5 enums. > > I have a class CounterpartyHedgeVO which has the property creditEvents which > is a Set. > > Not sure what the problem is but I'm guessing that iBATIS trie