Hi
i use iBatis 2 not 3, and i solved this using a TypeHandlerCallback.
1) in my sqlMapConfig.xml i declared the use of the type handler:
2) i've implemented the iBAtis interface
com.ibatis.sqlmap.client.extensions.TypeHandlerCallback and defined the
methods to write and read from DB column.
I
I have a legacy database which contains. A flat structure for addresses like
this:
homeAddress|homeCity|homeState|homeZip|workAddress|workCity|workState|workZip.
I would like to map this into a List objects where the "home" address
uses Enumeration AddressType.HOME and "work" address type uses
By nested results, yes, I mean collections and associations. And by
"flattening" I mean avoiding the use of those.
iBATIS exhibits this behavior, the same way any ORM would, because the
object instances need to be cached to preserve object identity. So as
you're result set is being read through,
Thanks for the reply. What do you mean by nested result maps or selects? Do
you mean collections or associations with their own selects and result maps?
Why would ibatis exhibit this behavior in that case?
And by flattening, you mean the same kind of stuff used to avoid the n+1
select problem?
On
If it uses nested result maps or nested selects, I'm afraid you're out
of luck. You'll need to reduce the query results, or flatten out the
results.
Clinton
On 2010-01-14, Dave Rafkind wrote:
> Hi ibatis list, I'm new to ibatis so perhaps this is a noob question. I'm
> using Ibatis 3 (ibatis-3
Hi ibatis list, I'm new to ibatis so perhaps this is a noob question. I'm
using Ibatis 3 (ibatis-3-core-3.0.0.216.jar) with a somewhat complicated
schema (plenty of circular links etc).
I'm doing something like this:
List ids = session.selectList("getAll");
for (id : ids) {
MyObject o = sessio
Is there a way in iBatis 3 to let ResultContext works with generics?
interface ResultContext {
T getResultObject();
}
DISCLAIMER
http://www.tvh.com/newen2/emaildisclaimer/default.html
"This message is delivered to all addressees subject to the conditions
set forth in the attached disc
Hi all,
*very* interesting point, I'll follow the thread so I'll integrate the
transaction isolation in the @Transactional annotation in iBaguice.
All the best,
Simo
On Wed, Jan 13, 2010 at 4:41 PM, Clinton Begin wrote:
> Not yet. The plan is to pass it as a parameter to .openSession(). Somehow