|
From: Juergen H. <jue...@in...> - 2007-04-05 14:21:24
|
OK, this is roughly what my analysis from a year ago resulted in. So things haven't changed yet. The idea of building an in-memory XML file is an interesting workaround, but it's a bit of a hack, as you say. We should rather push the iBATIS guys to enhance their programmatic configuration facilities. I'm sure they are willing to do this, in particular now that Spring is their preferred DAO component model :-) Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of David Smiley Sent: Thursday, April 05, 2007 4:16 PM To: spr...@li... Subject: Re: [Springframework-developer] iBatis, inline SqlMapConfig configuration? I looked over the iBATIS API. One way to do this is to dynamically generate the SqlMapConfig.xml file in-memory, and then pass it on to com.ibatis.sqlmap.client.SqlMapClientBuilder. I was going to mention another way but after closer inspection of iBatis's configuration parsing code, it's not possible to completely do away with their xml file since there are some attributes which can't (easily if at all) bet set via get/set --ers; only via their XML configuration parsing code. If I manage to find the time one of these nights, I'll code up the in-memory XML file method for Spring and send a patch. I filed a feature request on this shortcoming with iBatis: https://issues.apache.org/jira/browse/IBATIS-416 ~ David Smiley Juergen Hoeller-2 wrote: > > This has been in consideration but we haven't looked at whether the > iBATIS API allows for doing these things programmatically yet. Feel > free to check this out and create an enhancement report in JIRA :-) > > Juergen > -- View this message in context: http://www.nabble.com/iBatis%2C-inline-SqlMapConfig-configuration--tf3529186 .html#a9856660 Sent from the springframework-developer mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |