-->
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.  [ 2 posts ] 
Author Message
 Post subject: identifier mapping has wrong number of columns - RootClass
PostPosted: Tue Nov 11, 2003 2:35 pm 
Newbie

Joined: Mon Nov 10, 2003 4:27 pm
Posts: 13
I am trying do a simple test of hibernate on jboss. I used middlegen to generate a mapping file from an existing database and hbm2java to generate sourcecode. I'm using the latest versions of these tools and jboss 3.2.2. I'm deploying using the mbean .sar archive. Whenever I deploy and specify any mapping files in the mbean service descriptor, I get the following error message:

13:19:52,861 INFO [HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again usi
ng client classpath: identifier mapping has wrong number of columns: net.sf.hibernate.mapping.RootClass

I've tried different mapping files and it doesn't seem to matter. The mapping file seems to match the database and java code as far as number of columns.

Has anyone ever seen this error or know how to fix it?

Thanks,
Rich


Top
 Profile  
 
 Post subject: nvarchar not handled by middlegen?
PostPosted: Tue Nov 11, 2003 2:53 pm 
Newbie

Joined: Mon Nov 10, 2003 4:27 pm
Posts: 13
I think I found the problem. Apparently middlegen doesn't know what to do with sqlserver type nvarchar and uses java.lang.Object for the type which causes the mapping validation to fail. Changing the type to java.lang.String in the mapping file got me past this issue (and on to new issues).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.