-->
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: Composite Pattern - Map an interface with 2 implementations
PostPosted: Mon Mar 12, 2007 4:03 am 
Newbie

Joined: Sun Mar 11, 2007 11:31 am
Posts: 4
Hi,

Hibernate version:
3.2.2

In my application I've used the composite-pattern this way:

There is an interface Rights which aggregates itself with two concrete implementations Group and User, i.e. a Group can contain several other groups and users. A user is always a leaf-node in this tree.

Googling for "composite pattern with hibernate" gave me http://www.researchkitchen.co.uk/blog/archives/57 and of course http://www.hibernate.org/86.html, but I still just have no Idea how to deal with this two implementations on the one hand and the interface on the other hand.

I always want to deal with the Rights-Interface within my application, so I think I have to map the interface itself in anyway, too.

Any help would be appreciated.

Regards,
Ace


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.