|
Yes, thank you very much.
-----Mensaje original-----
The DAO-system maps persistence interfaces to concrete implementations, so you should give the system an interface, it then returns the configured implementation. Change to:
ExencionDao exencionDao =(ExencionDao)DaoConfig.getDao(ExencionDao.class);
Niels
From:
Pecelis, Sergio [mailto:[EMAIL PROTECTED]
I got this error: com.ibatis.dao.client.DaoException: There is no DAO implementation found for class ar.com.toepfer.utils_normasDGI.exenciones.Exencion in any context. If you've registered multiple implementations of this DAO, you must specify the Context ID for the DAO implementationyou're looking for using the getDao(Class iface, String contextId) method.
After I execute this line:
ExencionDao exencionDao =(ExencionDao)DaoConfig.getDao(Exencion.class);
Where Daoconfig.getDao(Class) is:
public static Object getDao(Class cl) { return getDaoManager().getDao(cl); }
any idea? ___________________________________________ CONFIDENTIALITY NOTICE This e-mail and any files and/or attachments transmitted with it are strictly confidential and intended solely for the use of the addressee. They may contain privileged and confidential information and, if you are not the intended recipient, you are hereby notified that any dissemination or copying and any use or disclosure of the information contained therein is strictly prohibited and may be illegal. If you are not the intended recipient, please notify [EMAIL PROTECTED] immediately and delete this message and any files and/or attachments thereto. |
