unsubscribe
Multiple values in a plugin property
I'm developing an Ibator plugin and wondering if there is a preferred way to specify multiple values. I'm expecting to implement a comma separated list ibatorPlugin type=com.example.ibatis.ibator.plugins.ClassAnnotator property name=classTypes value=modelBaseRecord,modelExample / property name=annotations value='java.lang.SuppressWarnings(unchecked),' / /ibatorPlugin Alternatively, has anyone already made this plugin (to annotate classes generated by Ibator)? I understand there are many plugins out there, but searching google and the ibatis site only turned up the 5 that are in the svn repository: http://svn.apache.org/repos/asf/ibatis/trunk/java/tools/ibator/core/src/org/apache/ibatis/ibator/plugins/ ...Chad
unsubscribe
unsubscribe
Re: unsubscribe
unsubscribe
Re: unsubscribe
http://ibatis.apache.org/mailinglists.html On Sun, Jun 21, 2009 at 9:00 AM, Sameeh Harfoushsameeh.harfo...@gmail.com wrote: unsubscribe
Re: Multiple values in a plugin property
Hi Chad, As far as I know there's no preferred delimiter. In some conversations I've had with Jeff, he's suggested commas were a good way to go. I've done something similar before with a plugin, adding a Spring @Service annotation to my generated DAOs, but nothing as generic as you're trying. In the particular case of your example, however, you can use the suppressTypeWarnings property of the ibatorContext element rather than using a plugin. I agree some sort of repository listing for plugins would be a great thing. In the past, people have suggested adding them to the 3rd Party Contributions page on the Wiki ( http://opensource.atlassian.com/confluence/oss/display/IBATIS/3rd+Party+Contributions). I keep meaning to clean mine up and post them, but it always seems to slip through the cracks. Hope this helps, Dan On Sun, Jun 21, 2009 at 8:55 AM, Chad McHenry mchen...@gmail.com wrote: I'm developing an Ibator plugin and wondering if there is a preferred way to specify multiple values. I'm expecting to implement a comma separated list ibatorPlugin type=com.example.ibatis.ibator.plugins.ClassAnnotator property name=classTypes value=modelBaseRecord,modelExample / property name=annotations value='java.lang.SuppressWarnings(unchecked),' / /ibatorPlugin Alternatively, has anyone already made this plugin (to annotate classes generated by Ibator)? I understand there are many plugins out there, but searching google and the ibatis site only turned up the 5 that are in the svn repository: http://svn.apache.org/repos/asf/ibatis/trunk/java/tools/ibator/core/src/org/apache/ibatis/ibator/plugins/ ...Chad
Re: Multiple values in a plugin property
It is for Spring annotations that I started this, so I'll continue on. SuppressWarnings annotations were an afterthought, but the suppressTypeWarnings property is a useful find, as is the targetRuntime=Ibatis2Java5 attribute, which I'd somehow missed before, thanks for the pointer. On Sun, Jun 21, 2009 at 12:21 PM, Dan Turkenkopf dturk...@gmail.com wrote: Hi Chad, As far as I know there's no preferred delimiter. In some conversations I've had with Jeff, he's suggested commas were a good way to go. I've done something similar before with a plugin, adding a Spring @Service annotation to my generated DAOs, but nothing as generic as you're trying. In the particular case of your example, however, you can use the suppressTypeWarnings property of the ibatorContext element rather than using a plugin. I agree some sort of repository listing for plugins would be a great thing. In the past, people have suggested adding them to the 3rd Party Contributions page on the Wiki ( http://opensource.atlassian.com/confluence/oss/display/IBATIS/3rd+Party+Contributions). I keep meaning to clean mine up and post them, but it always seems to slip through the cracks. Hope this helps, Dan On Sun, Jun 21, 2009 at 8:55 AM, Chad McHenry mchen...@gmail.com wrote: I'm developing an Ibator plugin and wondering if there is a preferred way to specify multiple values. I'm expecting to implement a comma separated list ibatorPlugin type=com.example.ibatis.ibator.plugins.ClassAnnotator property name=classTypes value=modelBaseRecord,modelExample / property name=annotations value='java.lang.SuppressWarnings(unchecked),' / /ibatorPlugin Alternatively, has anyone already made this plugin (to annotate classes generated by Ibator)? I understand there are many plugins out there, but searching google and the ibatis site only turned up the 5 that are in the svn repository: http://svn.apache.org/repos/asf/ibatis/trunk/java/tools/ibator/core/src/org/apache/ibatis/ibator/plugins/ ...Chad
Ibator plugin use and future plans
I was having trouble using my ibator plugin from eclipse, getting the error Cannot instantiate object of type com.example.ibatis.ibator.plugins.ClassAnnotator and found an old thread [1] which references the same error. It appears it is still relevant (I could only run my plugin via eclipse by putting my plugin classes into $eclipse/plugins/org.apache.ibatis.ibator.core_1.2.1/ibator.jar). For using plugins, is the ant-task still the preferred way to use Ibator? I use maven, and can use maven-antrun-plugin, but is it still true that any changes made to generated files will be lost when using the ant version since it does not merge java files? Are there plans, or a roadmap for Ibator? I'm spending a lot of time getting this plugin working (and actually believe it will be worth it over the course of multiple projects). I'm wondering if I can contribute back to the ibator-core, but would hesitate if there is going to be a drastic redesign for ibatis-3.0. ...Chad [1] http://www.nabble.com/Re:-ibator-question-about--element-p19222727.html
Help reuires regarding huge data retrieval
Hi all, i need help. that i run a select query from my data base, which return millions of records from oracle. The application give a retrieval error (after a long time) of over flow. What should i do to implement paging and get only few data at a time. (rownum does not work because it select query has to perform some addition operations too) i m using myeclipse ide i am new bee, so please help me detailed. -- Regards, Jahan Zaib