ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Are public enums allowed?
Date Fri, 19 Aug 2005 18:47:21 GMT
I have a Class Report that has some public enums.  I was hoping to  
map these to data in the database by way of a custom type handler.


<typeHandler javaType="reporting.viewer.domain.Report.Frequency"  
callback="reporting.viewer.dao.ibatis.FrequencyHandler"/>


but I get this error?
Caused by: com.ibatis.dao.client.DaoException: Error while  
configuring DaoManager.  Cause: java.lang.RuntimeException: Error  
occurred.  Cause: com.ibatis.common.xml.NodeletException: Error  
parsing XML.  Cause: java.lang.RuntimeException: Error parsing XPath  
'/sqlMapConfig/typeHandler'.  Cause:  
com.ibatis.sqlmap.client.SqlMapException: Error registering  
occurred.  Cause: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.RuntimeException: Error parsing XPath '/ 
sqlMapConfig/typeHandler'.  Cause:  
com.ibatis.sqlmap.client.SqlMapException: Error registering  
occurred.  Cause: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.RuntimeException: Error occurred.  Cause:  
com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:  
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/ 
typeHandler'.  Cause: com.ibatis.sqlmap.client.SqlMapException: Error  
registering occurred.  Cause: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.RuntimeException: Error parsing XPath '/ 
sqlMapConfig/typeHandler'.  Cause:  
com.ibatis.sqlmap.client.SqlMapException: Error registering  
occurred.  Cause: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:  
reporting.viewer.domain.Report.Frequency
         at  
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager 
(XmlDaoManagerBuilder.java:126)
         at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager 
(DaoManagerBuilder.java:59)
         at reporting.viewer.dao.DaoConfig.<clinit>(DaoConfig.java:37)


Mime
View raw message