-->
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 of Interfaces
PostPosted: Wed Jul 13, 2005 12:23 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
Hi,

I've got a class model with the following structure:
class BusinessPartner
interface Customer
interface Supplier

and some classes:
class BasicCustomer extends BusinessPartner implements Customer
class BasicSupplier extends BusinessPartner implements Supplier
class SupplyingCustomer extends BusinessPartner implements Customer, Supplier

BusinessPartner holds a Set of value indicating if the Class implements Supplier or Customer. (i.e. String[] {"Customer","Supplier"}).

How can I map the values, to retrieve BasicCustomer or BasicSupplier if only one value is present and a SupplyingCustomer if both values are present?

Any ideas which interfaces to implement or what keyword to search for?

Thx
Joerg
3.0.4


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.