-->
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: Map bridge pattern
PostPosted: Tue Sep 15, 2009 8:40 pm 
Newbie

Joined: Sun Feb 18, 2007 1:05 pm
Posts: 16
Hi,
My domain model consist of a bridge pattern
Code:
interface IEntity {
   getId();
   getName();
}
class OneEntityImpl  implements  IEntity{
   OrgInteface oi;
   getName(){
      return oi.getName();
      }
getId(){
   return oi.getId();
    }
}
class TwoEntityImpl  implements  IEntity{
   ProjInteface pi;
   getName(){
      return pi.getName();
         }
getId(){
   return pi.getId();
      }
}

Class ReferringClass {
Ientity entity;

}

Class OrgInterFaceImpl{
}
ProjInterFaceImpl{
}

Basically my referring class will be accessing OrgInterfaceImpl or ProjInterfaceImpl throgh an inteface Ientity. I will be having tables for OrgInterFaceImpl and ProjIntefaceImpl.
I am not sure,I have conveyed the picture clearly :)
How can I map my Referring class to either of these i.e OrgInterfaceImpl/ProjInterfaceImpl ?

Thanks in advance


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.