You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Herman Bovens <he...@gmail.com> on 2009/10/20 15:29:10 UTC

SQL mapping problem

Hi,
I have the following problem:

I'm calling a stored procedure and I'm mapping the columns it returns to the
fields of a domain object. So far so good.  However, the procedure returns
an extra column, which is the same for all rows and is in fact a separate
value that does not belong in the domain object.  For performance reasons it
is returned by the same procedure.
So I would like to create a class that has a property for this value, and a
property which is a list of domain objects (the actual results).  But I
don't know how to create a mapping for this, if it is at all possible?
I'm not sure if/how a custom type handler could be used to solve this.

Thanks
-- 
View this message in context: http://www.nabble.com/SQL-mapping-problem-tp25975109p25975109.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org