Joined: Wed Jan 28, 2004 5:21 pm Posts: 18 Location: Maracaibo, VZLA
|
Hi... I'm trying to create the mapping file of a table. That table has two fields dePubilcKey and dePrivateKey, both are varbinary (I'm using SQLServer 2000)... I created the mapping file with Middlegen, but I changed the java type of the field from java.lang.String (Middlegen put this type) to byte[] which I need..... I created my java file with hbm2java, everything is fine.... But when I run Hibern8ide, it throw me the following error message
25/02/2004 10:34:42 AM net.sf.hibernate.cfg.Binder bindRootClass INFO: Mapping class: com.procedatos.clinycas.seguridad.impl.ClaveFirmaImpl -> Cl aveFirma 25/02/2004 10:34:42 AM net.sf.hibernate.cfg.Configuration add GRAVE: Could not compile the mapping document net.sf.hibernate.MappingException: Could not interpret type: byte[] at net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:841) at net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:372) at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:957) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:321) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1173) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:245) at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:167) at net.sf.hibern8ide.Hibern8IDE.reconfig(Hibern8IDE.java:157) at net.sf.hibern8ide.Hibern8IDE$6.configurationChanged(Hibern8IDE.java:5 86)
Does anybody know what happended ? Does Hibern8ide not support byte[] ?? What types does it support ??
Thanks in advance
Alejandro.-
|
|