-->
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: Mapping Interfaces
PostPosted: Wed May 11, 2005 4:14 am 
Newbie

Joined: Wed May 11, 2005 4:11 am
Posts: 1
I want to map interfaces in my domain model. I want to have the setter for the id private so cannot specify this in the interface.

Is this possible?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 4:24 pm 
Newbie

Joined: Tue May 10, 2005 1:16 pm
Posts: 16
Location: Vancouver, BC, Canada
This must be a common problem, I'm trying having the methods you want public in one MyInterface, and the ones you want private in HibernateInterface extends MyInterface.
Then an implementor has to implement HibernateInterface, and a 'user' uses MyInterface.

When I want to extend MyInterface I have to do MyExtensionInterface extends MyInterface and HibernateExtensionInterface extends MyExtensionInterface implements HibernateInterface and add the required extra getters.

I'm hoping this is going to work.

Anyone have a better method?

_________________
http://www.JamesAshepherd.com/


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.