RE: Problem populating a List using groupBy

2006-06-23 Thread Chris Lamey
Title: RE: Problem populating a List using groupBy Heya, This doesn't address your question directly, but is some background for you.  I am also using iBATIS for the first time in a small but somewhat complex schema.  Along the way I tried using the groupBy support in the SqlMap xml but gave

SV: Abator wishlist

2006-06-23 Thread erlend.bjorge
Hi therae Christopher!   >PrimaryKey class in the first place the impact would have been greatly reduced and almost negligible. I learned my lesson and now always create a PrimaryKey class for every Domain object. >And as you stated below, it provides a much cleaner interface to the sel

SV: Abator wishlist

2006-06-23 Thread erlend.bjorge
Hi there Jeff!   >The primary key class is seperated so that the method signatures for selectByPrimaryKey and deleteByPrimaryKey can only require the primary key, and not the class that represents the entire row.    I see, was thinking about that, but I haven’t got that problem, I al

RE: Abator wishlist

2006-06-23 Thread Christopher . Mathrusse
Very well stated Jeff, and I like your suggested implementation.   To add more to the argument of having separate PrimaryKey classes, my last project we I was using EJB's for persistence and started by using the simple Java wrapper classes around the primitives, such as Integer for int and o

Re: Abator wishlist

2006-06-23 Thread Jeff Butler
The primary key class is seperated so that the method signatures for selectByPrimaryKey and deleteByPrimaryKey can only require the primary key, and not the class that represents the entire row.  I did it that way because I have strong dislike of using half empty objects.  For example, if the delet

SV: Abator wishlist

2006-06-23 Thread erlend.bjorge
Hi there!   >Gareth wrote: >Most of the hand written domain objects I have are completely flat POJOs - there is no separate class for primary key - most of the time, there are no >primary keys on the database - so I'd like all of the Abator generated objects to be the same. Can we turn

Abator wishlist

2006-06-23 Thread Gareth Moorst
Hi List,I've been using Ibatis for some time with manually written sqlmaps and daos, but now our development has moved up a notch and I'm looking at simplifying things by using Abator to generate our data access layer.I've used it on a small scale, and had some success - I've found it very useful,

Re: Problem populating a List using groupBy

2006-06-23 Thread Jeff Butler
The first thing I see is that, with iBATIS, you cannot back a List with an array like this.  iBATIS does not group everything together and call the set list method one time - it will repeatedly call the get list method and add to the list.   The get list and set list methods should be simple gette

Problem populating a List using groupBy

2006-06-23 Thread Torsten Michelmann
Hi folks, again me (seems that I am touching all the rather complicated topics of iBatis during my very first project). The problem is appearing while I try to avoid an N+1 select for a 1:M relationship (as described on p. 36 in the latest developer guide). I think that I may be using the groupB

Re: output problem

2006-06-23 Thread puneet arya
Hi,     ya this is absolutely right man.  Regards, Puneet"Albert L. Sapp" <[EMAIL PROTECTED]> wrote: Sorry, engaged fingers before brain. :-[ I don't think JDBC drivers support VARCHAR2, so you do need to use VARCHAR in sqlmap file. Too doggone early in the morning to be going through email. :

Re: output problem

2006-06-23 Thread Albert L. Sapp
Sorry, engaged fingers before brain. :-[ I don't think JDBC drivers support VARCHAR2, so you do need to use VARCHAR in sqlmap file. Too doggone early in the morning to be going through email. :-! Al puneet arya wrote: hi, thx anyway you are right the problem is in the definition of

Re: output problem

2006-06-23 Thread Albert L. Sapp
puneet arya wrote: hi, thx anyway you are right the problem is in the definition of mine output parameters but as you are telling that we can't defined resultMap attribute in output parameter so i am clearing you we can define. i have thrashed out the problem ,, actually IBATIS do not sup

Re: output problem

2006-06-23 Thread puneet arya
hi,    thx anyway you are right the problem is in the definition of mine output parameters but as you are telling that we can't defined resultMap  attribute in output parameter so i am clearing you we can define. i have thrashed out the problem ,, actually IBATIS do not support datatype VARCHAR2

Re: output problem

2006-06-23 Thread Beemsterboer Software
Hi, The definition of your output parameters is incorrect. The resultMap attribute should not be defined. Please read the documentation or the sql-map.dtd. Greetings, Hans. puneet arya wrote: Hi,    i have made stored procedure in oracle and try to run the output in the store procedure