-->
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: CVS functionality
PostPosted: Sat Jul 10, 2004 4:44 am 
Newbie

Joined: Wed Nov 19, 2003 5:30 am
Posts: 9
Hi there.

Have you ever implemented cvs functionality with hibernate?

It's very easy to implement an object state history using interceptors, but what's about branches. Especially how to solve the relations to other objects in a many-to-many fashion?

My initial approach of my domain model looks like this:

Code:
   
    public class Branche {
         public long id;
         public String displayName;
         public String description;

         public Branche() {
         }
    }

    public classs DomainObject implements Cloneable {
          public long id;
          public Branche branche;
          public String displayName;
          pulbic Set relatedDomainObjects;
 
          public Branche() {
              relatedDomainObjects = new HashSet();
          }

          public Object clone() {
                // @TODO     Beeing on the ropes
                //                 PLEASE HELP!!!
                return this;
          }
    }


Please tell me your thought, 'cause I'm on the ropes.

Thx very much

Andi


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.