limit-offset for selectByExample plugin

2009-04-10 Thread Marco Musu
Hi everyone, i developed a plugin to add to the standard example class and to the generated map the limit and the offset clause, useful when dealing with pagination on MySQL and PostgreSQL. Could be of some interest to the mailing list? thank you Marco

Re: limit-offset for selectByExample plugin

2009-04-11 Thread Marco Musu
; /** * This plugin adds limit and offset clause to the example class and * to the sqlMap selectByExample map. * * @author Marco Musu * */ public class AddLimitOffsetPlugin extends IbatorPluginAdapter { public boolean validate(ListString warnings) { return true; } @Override public

wildcard in sqlMap resource=mypackage/map/*.xml

2009-04-20 Thread Marco Musu
Hi everyone, there is a way to set SqlMapConfig file to load all the xml sqlMap files contained in a certain package? While using ibator to generate the maps and write them to a package, it will avoid the extra work to add the single map file configuration to the SqlMapConfig... Thanks Marco

any way to use wildcards in sqlMapConfig file?

2009-07-11 Thread Marco Musu
Hi everyone, it is possibile to use wildcards inside a SqlMapConfig file? I usually put all sqlMap files into a package of my project, so it will be useful to have all resources automatically added without specifing every xml inside the sqlMapConfig... Any suggestions? thanks Marco