taylor      2004/09/30 21:39:11

  Modified:    components/registry/src/java/org/apache/jetspeed/om/impl
                        UserAttributeImpl.java
  Log:
  add an id field to user attribute to represnt PK
  changing the mapping for PA -> User attributes relationship
  dropped the anonymous relationship and added a FK
  this seems to fix side effect bug where extra dup recs inserted when deleting or 
updating (insert wasnt showing this symptom) of user attributes
  i imagine we will need to do the same for other PA and PD associations
  
  Revision  Changes    Path
  1.3       +8 -0      
jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/UserAttributeImpl.java
  
  Index: UserAttributeImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/impl/UserAttributeImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UserAttributeImpl.java    7 May 2004 13:41:46 -0000       1.2
  +++ UserAttributeImpl.java    1 Oct 2004 04:39:11 -0000       1.3
  @@ -26,6 +26,7 @@
   
       /** The application id. */
       protected long appId;
  +    protected long id;
       
       /**
        * <p>Default constructor.</p>
  @@ -91,4 +92,11 @@
           return userAttribute;
       }
   
  +    /**
  +     * @return Returns the id.
  +     */
  +    public long getId()
  +    {
  +        return id;
  +    }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to