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: NVARCHAR not supported?

2009-05-18 Thread Jeff Butler
You need to add your new resolver to the same classpath as the Ibator JAR. elements are only used for JDBC drivers and one other esoteric place. Because your resolver extends an ibator class, it should be loaded by the same classloader. http://ibatis.apache.org/docs/tools/ibator/configreference/

Re: NVARCHAR not supported?

2009-05-18 Thread NathanM
Then what am I doing wrong with my resolver type? Ibator keeps failing with the "Cannot instantiate object . . . . JavaTypeResolverWithNVarChar"; Does this instantiation not use the classpath entries in the ibatorConfig.xml file? I've tried putting an entry in there for the bin directory which

Re: NVARCHAR not supported?

2009-05-18 Thread Jeff Butler
Currently, you have these options with Ibator: 1. Write your own type resolver 2. Use column overrides on each NVARCHAR column I've got an idea for the Ibator type resolver where you can configure this globally, but there's no scheduled delivery date for that. As far as iBATIS goes, as long as t

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: NVARCHAR not supported?

2009-05-18 Thread NathanM
I've tried a test case and casting it to a String works. It also gave the correct string value. I have not tried an actual UTF-16 valeu because I don't know how to enter one in SQL Server Management Studio. What is the best way to generate code to retrieve nvarchar as a string? Should I use a p

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

Mapping of a Set with enums

2009-05-18 Thread Mikael Andersson
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 tries to treat the Enum like a POJO and fails to create it since there isn'