-->
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: MappingException when using the Hibernate Plugin 3alpha1
PostPosted: Thu Jan 27, 2005 11:05 am 
Newbie

Joined: Thu Jan 27, 2005 10:55 am
Posts: 2
I am developing a rich client application using Hibernate. I have the following plugins:
- Application: the module that connects all parts
- Model: contains the beans and their interfaces.
- Database: abstracts the database functions, contains the mapping file and all hibernate-specific code
- JDBC: contains and exports the jdbc jars

When I want to connect to the database from the Application, I instantiate a class in the Database plugin ant it does the Configuration and the Session management. The problem is that when I call Configuration.addURL with the mapping.hbm.xml file I get the following traceback:
07:37:41,650 INFO HbmBinder:438 - Mapping class: com.teamcenter.rbc.Cell -> Cells
07:37:41,821 ERROR Configuration:358 - Could not compile the mapping document
org.hibernate.MappingException: class com.teamcenter.rbc.Cell not found while looking for property: layout
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:81)
at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:52)
at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1500)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1479)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:579)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:1787)
at org.hibernate.cfg.Configuration.add(Configuration.java:355)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:392)
at org.hibernate.cfg.Configuration.addURL(Configuration.java:327)

It seems the hibernate classes cannot access the Model classes from the Model plug-in.

Any ideas on what should I do? I don't like bundling the Database and the Model plug-ins together since I want to be able to use the model without the dependency on Hibernate.

Thank you,
florin


Top
 Profile  
 
 Post subject: Alternative approaches
PostPosted: Thu Jan 27, 2005 11:16 am 
Newbie

Joined: Thu Jan 27, 2005 10:55 am
Posts: 2
I have tried to slice the big mapping.hbm.xml file into per-class mapping files, then run configure.addClass. I get the same error.


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.