-->
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.  [ 1 post ] 
Author Message
 Post subject: Mapping Interfaces using NHibernate
PostPosted: Wed Jan 23, 2008 11:58 pm 
Newbie

Joined: Thu Jan 17, 2008 1:33 pm
Posts: 6
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 1.2.1GA

Mapping documents: That's the question.

I have a model that looks like this:
Image

A Panel can have IPanelDevices attached to it. An IExtendableDevice can have IChildDevices. Is there any other way than a separate hbm file for every concrete class? Can I leverage the interfaces in the hbm files? My attempts so far run into errors of not being able to find setters for properties on my Interfaces (they aren't there, they're in the base Device class.

Any suggestions would be appreciated. Thanks!


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html

[/img]


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

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.