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: Mapping Interfaces in NH
PostPosted: Thu Aug 17, 2006 9:18 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 6:05 am
Posts: 42
Hello,

while mapping my classes I came to the point where I had to map my interfaces. Most things I read about it, was to map interfaces as classes.
Even when mapping it as table-per-class I do not feel very lucky with this technic.
Is there another practice for this case?

Best

eg


Top
 Profile  
 
 Post subject: Re: Mapping Interfaces in NH
PostPosted: Thu Aug 17, 2006 9:53 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
El Gringo wrote:
while mapping my classes I came to the point where I had to map my interfaces. Most things I read about it, was to map interfaces as classes.
Even when mapping it as table-per-class I do not feel very lucky with this technic.
Is there another practice for this case?


I have not been able to figure out how could be possible to restore interface from database record WITHOUT knowing the actual class that implemented it. If You can figure it out, You can propably write mapping for it also..

Gert

_________________
If a reply helps You, rate it!


Top
 Profile  
 
 Post subject: Re: Mapping Interfaces in NH
PostPosted: Thu Aug 17, 2006 10:04 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 6:05 am
Posts: 42
gert wrote:
I have not been able to figure out how could be possible to restore interface from database record WITHOUT knowing the actual class that implemented it. If You can figure it out, You can propably write mapping for it also..

Gert


Thats my problem. I cannot figure it out. :)

I guess it is a similar problem when trying to map an arraylist containing objects of a diffrent type.

eg


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.