Coverage Report - org.trails.descriptor.OwningObjectReferenceDescriptor
 
Classes in this File Line Coverage Branch Coverage Complexity
OwningObjectReferenceDescriptor
0% 
N/A 
1
 
 1  
 package org.trails.descriptor;
 2  
 
 3  
 import org.apache.commons.logging.Log;
 4  
 import org.apache.commons.logging.LogFactory;
 5  
 
 6  
 
 7  
 /**
 8  
  * This class represents a one-to-one association and is created by
 9  
  * HibernateDescriptorDecorator at bootstrap time
 10  
  *
 11  
  * @author kenneth.colassi nhhockeyplayer@hotmail.com
 12  
  * @OneToOne use case.
 13  
  * <p/>
 14  
  * EXAMPLE: one-to-one association
 15  
  * <p/>
 16  
  * Organization-<>-----Director
 17  
  * <p/>
 18  
  * Organization is the owner. Director is the reference.
 19  
  * <p/>
 20  
  * Each requires a specialized trails property editor.
 21  
  * <p/>
 22  
  * Both of these objects are manipulated by dedicated descriptors respectively
 23  
  * OwningObjectReferenceDescriptor and ObjectReferenceDescriptor which have a
 24  
  * sole duty of governing which property editor launches.
 25  
  * <p/>
 26  
  * In short this guy operates the owning side of the association for the
 27  
  * framework and gets detected as owner iff OneToOne does NOT have the mappedBy
 28  
  * attribute set
 29  
  * @see HibernateDescriptorDecorator
 30  
  * @see ObjectReferenceDescriptor
 31  
  * @see org.trails.component.AssociationSelect
 32  
  * @see org.trails.component.AssociationMgt
 33  
  */
 34  0
 public class OwningObjectReferenceDescriptor implements IDescriptorExtension
 35  
 {
 36  
 
 37  0
         protected static final Log LOG = LogFactory.getLog(OwningObjectReferenceDescriptor.class);
 38  
 
 39  0
         private String inverseProperty = null;
 40  
 
 41  
         public String getInverseProperty()
 42  
         {
 43  0
                 return inverseProperty;
 44  
         }
 45  
 
 46  
         public void setInverseProperty(String inverseProperty)
 47  
         {
 48  0
                 this.inverseProperty = inverseProperty;
 49  0
         }
 50  
 
 51  
 }