-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibern8ide error : Could not interpret type: byte[]
PostPosted: Wed Feb 25, 2004 11:06 am 
Newbie

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.-


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 25, 2004 11:44 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
type="binary", not type="byte[]"

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 25, 2004 1:43 pm 
Newbie

Joined: Wed Jan 28, 2004 5:21 pm
Posts: 18
Location: Maracaibo, VZLA
I tried and it works... !! But I made the change manually because the Middlegen does has this java type....

Thank you very much..!!!

Alejandro.-


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.