Hi, Just wandering has anyone done batch updating using org.springframework.orm.ibatis.support.SqlMapClientDaoSupportusing the Spring framework??I am interested to use Spring to define transactions for methods invoked via SqlMapClientDaoSupport as below txProxyTemplate" abstract="true"
Thanks Eric. As I suspect. :)
Sam
- Original Message -
From:
Eric
Tan
To: user-java@ibatis.apache.org
Sent: Monday, July 10, 2006 8:45 PM
Subject: Re: many-to-many relationship
practice
Hi,There should not be any association class in your
domain model. Y
Hi ibatiser,
Just a simple question on the general practice of
implementing many-to-many relationship in ibatis.
I have a category object that can have many item,
an item can belong to many category, hence
many-to-many relationship. So I introduced an
association class named Categorized
Why not use BaseDaoiBATIS class from the Spring
framework
and specify transaction levels from xml file to do
auto commit??
So no manual code is
required to commit
Makes life easier
Sam
- Original Message -
From:
Cornel Antohi
To: user-java@ibatis.apache.org
Se
Sorry wrong disscussion forum.
Please ignore
Thanks
Hi,
This is just a suggestion. The wiki shud have a
page allowing
ppl to upload custom type handler class
extending
TypeHandlerCallback
so we can simply download the tested working version
of
custom type handler without reinventing the wheel. For example,
char, boolean, Currency, blaaa
cu
getCurrency() { return Currency.getInstance(
currency.getCurrencyCode() );}
public BigDecimal getValue() { return new BigDecimal(
value.doubleValue() );}
Not pretty but at least security still maintained. And now I can use
Sam,
- Original Message -
From:
Dodo
To: user-java
Hi,
If I have an Item.java class that has a complex
object, MonetaryAmount.java as its field. Now for security reason,fields
of MonetaryAmount class has private final fields and getter methods only,
setter methods are empty.
Now you can see I have problem using
TypeHandlerCallbackto retu
Hi gang,
What's the general practice of adding an add-on
classes to an existing package in appfuse?
BTW, I don't want to touch the existing jar files
in lib in this case.
For example, if I want to add some classes to an
existing jar file from lib dir, say ibatis.jar,
and I want to make
How come there is no hibernate xdoclet equivalent
of ibatis xdoclet?
Is it really a bad idea to use xdoclet in POJOs to
generate
1 to many, 1 to 1, many to many, many to 1
relationship
in sql mapping file?
I am very tempted to write such feature in
xDoclet.
Thanks
Sam
of
ArrayList and store the sql statement to call to populate the List. As
you guess, this statement is run when you class any method of
productList.
Hope that helps.
Christian
-Original Message-
From: Dodo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 14 June 2006 12:32
To: user-java@ibatis.apache
Hi,
I am thinking of using surrogate key (the one
generated by
database) to implement equals() of domain object
for ibatis.
Now is there any pitfall I need to
know???
Anyone doing things this way??
Although 'Hibernate in Action' said this is a bad
idea but
I only want to compare obj
Hi,
How do I test for lazy loading to assure myself
that
it's working?
I did some test as below where user has complex
collection as List
long start =
System.currentTimeMillis();
User user = (User) dao.getUser(new Long(1));
long elapsedTimeMillis =
System.currentTim
Hi X,
That's not really lazy loading, it's dynamic conditional loading but I guess
it will do for the same thing.
According to page 7 and 9 of the same doc,
lazyLoadingEnabled is 'true' by default, exactly how does this lazy loading
work?
The doc seems to lack in this. For example,
Hi guys,
Can someone show me how lazy loading is achieved in
ibatis?I have a hard time finding any concrete example on this.
E.g.
Category class has a List of Item, each Category
can potentially contain thousandsof Items.
Now is enabling lazy loading as simple as
following? If it is,
15 matches
Mail list logo