com.mycompany.model
Class UserRelationship

java.lang.Object
  extended by com.mycompany.model.AbstractEntity
      extended by com.mycompany.model.UserRelationship
All Implemented Interfaces:
java.io.Serializable

@Entity
public class UserRelationship
extends AbstractEntity

JPA entity for a relationship between two users.

Author:
Ian Hlavats (ian@tarantulaconsulting.com)
See Also:
Serialized Form

Constructor Summary
UserRelationship()
           
 
Method Summary
 User getFromUser()
           
 RelationshipType getRelationshipType()
           
 User getToUser()
           
 void setFromUser(User firstUser)
           
 void setRelationshipType(RelationshipType contactType)
           
 void setToUser(User secondUser)
           
 
Methods inherited from class com.mycompany.model.AbstractEntity
equals, getId, getVersion, hashCode, setId, setVersion
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRelationship

public UserRelationship()
Method Detail

getRelationshipType

public RelationshipType getRelationshipType()

getFromUser

public User getFromUser()

getToUser

public User getToUser()

setRelationshipType

public void setRelationshipType(RelationshipType contactType)

setFromUser

public void setFromUser(User firstUser)

setToUser

public void setToUser(User secondUser)