Re: like issue plz help me

2009-09-23 Thread Dan Turkenkopf
I might be missing your question, but... Your ibatis query is wildcarded on both sides versus your straight SQL one. Try removing the first %. On Wednesday, September 23, 2009, quinya wrote: > > Not sure if I understand right but can't you just do... > > select * from Someone where UPPER(name) l

Re: Calling oracle procedure from Java using iBatis

2009-08-26 Thread Dan Turkenkopf
Hi Ant, I'm not tremendously familiar with PL/SQL stored procedures, but it doesn't look like you're returning anything from yours. I think what's happening is the queryForObject method is looking for a return parameter and not finding anything. If the procedure really doesn't need to return any

Re: Multiple values in a plugin property

2009-06-21 Thread Dan Turkenkopf
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. I

Re: Unexpected error while running Ibator NPE

2009-06-12 Thread Dan Turkenkopf
-user-java/200901.mbox/%3c35dbee350901190659t668c375as2a1cbba564cf7...@mail.gmail.com%3e Hope this helps. Dan Turkenkopf On Fri, Jun 12, 2009 at 7:35 AM, andig wrote: > > I'm trying to run Ibator on Eclipse seeing this error: > > > !ENTRY org.apache.ibatis.ibator.eclipse.

Re: Sharing iBATIS XML files between java applications

2009-06-02 Thread Dan Turkenkopf
a SQL Map configuration file and that must contain at least one reference to a SQL map. I have the main config file point to an empty SQL map so I can load all my real configurations through the Spring mechanism. It's not an ideal solution, but it meets my needs. Hope this helps, Dan Turkenko

Re: Ibtor not preserving custom methods

2009-05-22 Thread Dan Turkenkopf
hat are part of the Eclipse platform. There's no easy way to accomplish the same task running outside Eclipse. I know Jeff has talked about implementing it in the past, but it's a whole lot of work to do right. Hope this helps, Dan Turkenkopf On Fri, May 22, 2009 at 7:53 PM, Nathan

Re: ibator build error

2009-01-19 Thread Dan Turkenkopf
Hi Shao, It looks like you've run into a bug in the current release of Ibator where the DAO generator is required. It's been fixed in Subversion, so you can either build from source or add the daoGenerator element to your config. Here's an example: Hope t

Re: Ibator erasing custom annotations on private field

2009-01-07 Thread Dan Turkenkopf
responsible for. Jeff or someone else can correct me if it's different inside Eclipse. One way to make sure this sticks would be to create a plugin that adds the proper annotation for you. You'd want to override the modelFieldGenerated method from IbatorPluginAdapter. Hope this helps,

Re: Is there anyway to change the suffix of the exmaple class?

2008-12-18 Thread Dan Turkenkopf
I think you'll need to extend the IntrospectedTable class and override the getExampleType method. This isn't something that can be easily done through the plugin mechanism. Instructions for extending Ibator can be found here: http://ibatis.apache.org/docs/tools/ibator/reference/extending.html Ho

Re: Immutable objects in ResultMaps

2008-12-03 Thread Dan Turkenkopf
Clinton added support for > private properties in August 2006! :) > > Jeff Butler > > On Wed, Dec 3, 2008 at 7:25 PM, Dan Turkenkopf <[EMAIL PROTECTED]> wrote: > > Maybe I'm just missing something, but I thought that iBATIS required the > > objects used in a resul

Immutable objects in ResultMaps

2008-12-03 Thread Dan Turkenkopf
ation. To my surprise, when I removed the setters from my domain object, everything still seemed to work. Did I miss this functionality being introduced? Thanks, Dan Turkenkopf Here's my domain object: public class Master { private String id; private String firstName; priv

Re: Generating source code from sql statement

2008-11-20 Thread Dan Turkenkopf
Hi Ben, You can't generate from a query, but you can generate from a view. I don't know if that will help in your case, but it is an option. Regards, Dan Turkenkopf On Thu, Nov 20, 2008 at 5:53 AM, charlie bird <[EMAIL PROTECTED]> wrote: > Don't think so. > I

Re: Change package of Example classes generated by iBator ?

2008-11-14 Thread Dan Turkenkopf
uld create a plugin that implements themodelExampleClassGenerated(TopLevelClass, IntrospectedTable)method which might allow you to change the package for the TopLevelClass passed into it. Hope this helps, Dan Turkenkopf On Fri, Nov 14, 2008 at 7:54 AM, Gilles Schlienger <[EMAIL PROTECTED]>wrote: > Hi all, &

Re: Building an Ibator Plugin

2008-10-13 Thread Dan Turkenkopf
k into it. > > In the meantime, if you add plugin.jar to the ibator classpath on the > it should work. > > Jeff Butler > > On Mon, Oct 13, 2008 at 10:30 AM, Dan Turkenkopf <[EMAIL PROTECTED]> > wrote: > > I'm trying to build my first Ibator plugin against th

Building an Ibator Plugin

2008-10-13 Thread Dan Turkenkopf
sses. I'm sure it's a pretty straightforward fix, but I'm not sure what I'm doing wrong. Thanks for the help, Dan Turkenkopf My build.xml looks like this: