Okay. Like I said, I extended the CharBooleanType class and created a type called ActiveInactiveType. I mapped it to my POJO's property as follows:
Code:
/**
* @hibernate.property column="STATUS_FLAG"
* type="gov.epa.icis.common.server.dao.hibernate.ActiveInactiveType"
*/
public boolean isActive()
{
return active;
}
However, now I get the following exception (I've verified I don't have any typos in the type mapping). Any suggestions what might cause this?
Code:
net.sf.hibernate.MappingException: Could not interpret type: gov.epa.icis.common.server.dao.hibernate.ActiveInactiveType
at net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:934)
at net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1047)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:336)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:1013)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:969)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:883)
at gov.epa.icis.common.server.dao.hibernate.HibernateTemplate.<init>(HibernateTemplate.java:64)
at gov.epa.icis.common.server.dao.hibernate.HibernateTemplate.getInstance(HibernateTemplate.java:98)
at gov.epa.icis.common.server.dao.hibernate.HibernateTemplate.getInstance(HibernateTemplate.java:83)
at gov.epa.icis.dao.sysadmin.StateDAO.<init>(StateDAO.java:33)
at gov.epa.icis.sysadmin.server.ejb.SystemAdminSB.getStates(SystemAdminSB.java:83)
at gov.epa.icis.sysadmin.server.ejb.SystemAdmin_qbf5pt_EOImpl.getStates(SystemAdmin_qbf5pt_EOImpl.java:262)
at gov.epa.icis.sysadmin.server.ejb.SystemAdmin_qbf5pt_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:166)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
at gov.epa.icis.sysadmin.server.ejb.SystemAdmin_qbf5pt_EOImpl_813_WLStub.getStates(Unknown Source)
at gov.epa.icis.sysadmin.ui.SysadminDelegate.getStates(SysadminDelegate.java:111)
at gov.epa.icis.sysadmin.ui.action.AddUserAction.loadPage(AddUserAction.java:60)
at gov.epa.icis.sysadmin.ui.action.AddUserAction.execute(AddUserAction.java:39)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)