I try to send several parameters to the Mapper function defined in the DAO implementation, but I cannot send more than one parameter if the parameter does not own any class. I mean, how can I change the following code -
obj.getName(int a, int b);
In the implementation of DAO
public void getAllName() throws PersistenceException {
SqlSession session = sf.openSession();
try {
session.selectList("getNames");
} finally {
session.close();
}
}
I want to send a and b to request getNames.
Thanks in advance.
user760955
source
share