I am new to IBATIS.NET and I would like to know:

1. Is there away to automatically generated mapping
file?  Whether it's reading the metadata or attributes
of some kind.

2. Is there an example to show me how to map
many-to-many?

3. Any Spring.NET integration examples somewhere I can
take a look?

4. Where to place the map file xml? in NPETSHOP, you
put it in the Web project.  You have to make a copy to
test project also? Why do you put it in the Domain
instead? Like NHIBERNATE.

5. Why do you call open and close connection at the
service layer?  Let say I would like to replace IBATIS
with NHIBERNATE later, I have to rewrite the service
layer too?  

This sample code is from the NPETSHOP project.

<pre>
public Account GetAccount(string username) 
{
    Account account = null;

    _daoManager.OpenConnection();
    account = _accountDao.GetAccount(username);
    _daoManager.CloseConnection();

    return account;
}
</pre>

Thank you,

Hai


                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

Reply via email to