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
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
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
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
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
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
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,
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
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
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. :
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
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
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
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
14 matches
Mail list logo