-->
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.  [ 4 posts ] 
Author Message
 Post subject: Use of Interfaces instead of Classes
PostPosted: Thu Mar 01, 2007 6:56 am 
Newbie

Joined: Tue Feb 27, 2007 12:18 pm
Posts: 2
Hi all! I'm just begin to use Hibernate and may be my question seems you stupid. But I don't understand if I may use interfaces instead of classes for my hibernate objects?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 10:37 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
you may use interfaces as they're normally used, but the mapping files must be able to put data into concrete classes

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 11:13 am 
Newbie

Joined: Tue Feb 27, 2007 12:18 pm
Posts: 2
kochcp wrote:
you may use interfaces as they're normally used, but the mapping files must be able to put data into concrete classes


Thank you very much for your answer. So as I understood I have to use class for create my hibernate mapping file. But those class may use interfaces by itself, right?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 11:21 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
yep

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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