sealectKey database abstraction

2008-08-12 Thread Perl fromSpain
Hi, I'm using the "selectKey" with insert commands. It works great. We are using a development database based in SQLite, and the select is like this: select max(id)+1 from TABLE Now, we are moving our project to the production enviroment, a Oracle 10g database, and in this scenario we'll use a seq

Re: IBatis 2.3 lazy loading issue for return null instead of an list

2008-08-12 Thread Nicholoz Koka Kiknadze
AFAIK the root of the problem is that when iBatis handles resultset of left joining master table with child table the child table columns may be all NULL and it's not quite clear whether child table indeed contained corresponding row with NULL elements or there was no result found in the child tabl

Re: sealectKey database abstraction

2008-08-12 Thread Ian Zabel
I'd suggest that you do your development against an Oracle 10g database. This really is the best solution. But, if that's not really an option, I guess you could maintain a separate set of sql maps for each DB. Or, maybe use Ant replacement variables for your build to swap out the correct s

Re: sealectKey database abstraction

2008-08-12 Thread Tom Schindl
Why not using an XML-Entity and load different DTDs, this way you have your standard mapping files and only the small Entity thing is switched by including this or that DTD. Tom Ian Zabel schrieb: I'd suggest that you do your development against an Oracle 10g database. This really is the best

RE: sealectKey database abstraction

2008-08-12 Thread Niels Beekman
Use a properties file to specify the statements, and then include them from within the selectKey statement. There was a post about this a while back, but I can't find it. You could look in the documentation to see if there's any information about including properties. Niels ___

Re: Complex Abator Query

2008-08-12 Thread Jeff Butler
Ibator where clauses are always in this form: (x && y && z) || (a && b && c) You can use boolean algebra to refactor your query into something that can be accomplished in ibator. For example: (bool1 not true && date1 is null && date2 between testdate1 and testdate2 && string1 is null) || (bool1

Really Weird Oracle REF Cursor Behavior

2008-08-12 Thread Ian Zabel
Hello, Using the latest build of iBATIS and Oracle REF Cursors, we're running into a problem with certain rows not coming back in the ResultSet. It seems to be certain data in the rows that makes them not return. For example, we have a column called INTERNAL_INVOICE_NBR. With the following values

Re: Really Weird Oracle REF Cursor Behavior

2008-08-12 Thread Jeff Stahl
iBATIS seems to have a problem with handling RefCursors as OUT parameters in stored procedures. I don't know how you're attempting to use iBATIS in your project, but in house here we've found that stored functions (where the Cursor is returned from the function and not fetched into an out para

Re: Really Weird Oracle REF Cursor Behavior

2008-08-12 Thread Sundar Sankar
Could you send your Ibatis configs. I am having data like those successfully processed. On Tue, Aug 12, 2008 at 2:57 PM, Jeff Stahl <[EMAIL PROTECTED]> wrote: > iBATIS seems to have a problem with handling RefCursors as OUT parameters > in stored procedures. I don't know how you're attempting to

Re: Really Weird Oracle REF Cursor Behavior

2008-08-12 Thread Ian Zabel
Very interesting. How do you map something like that? Thanks, Ian. On Aug 12, 2008, at 5:57 PM, Jeff Stahl wrote: iBATIS seems to have a problem with handling RefCursors as OUT parameters in stored procedures. I don't know how you're attempting to use iBATIS in your project, but in house h

Re: Really Weird Oracle REF Cursor Behavior

2008-08-12 Thread Clinton Begin
It shouldn't... :-/ Can you provide a failing test case? On Tue, Aug 12, 2008 at 3:57 PM, Jeff Stahl <[EMAIL PROTECTED]> wrote: > iBATIS seems to have a problem with handling RefCursors as OUT parameters > in stored procedures. I don't know how you're attempting to use iBATIS in > your project,

Re: Complex Abator Query

2008-08-12 Thread Ibatis534
Thanks. Can I make a feature request that enables Example Classes to construct queries in a more dynamic way. It would be nice to be able to combine clauses as either 'OR' or 'AND' like criteria1 = example.createCriteria().andField1EqualTo(testValue); criteria2 = example.createCriteria().andF