Class Exchange

java.lang.Object
com.plannaplan.entities.Exchange

@Entity
public class Exchange
extends java.lang.Object
Entity that keeps user exchange offer.
  • Constructor Details

    • Exchange

      public Exchange()
    • Exchange

      public Exchange​(Assignment ownedAssignment, Groups desiredAssignment)
      Parameters:
      ownedAssignment - Assignment which owner would like to trade
      desiredAssignment - Groups instance that trader wants
  • Method Details

    • getOwnerId

      public java.lang.Long getOwnerId()
      Returns:
      Long ID of exchange trader
    • setOwnerId

      public void setOwnerId​(java.lang.Long ownerId)
      Parameters:
      ownerId - ID of exchange trader
    • getDataExchange

      public java.sql.Timestamp getDataExchange()
    • getId

      public java.lang.Long getId()
      Returns:
      Long ID in database
    • getDesiredAssignment

      public Groups getDesiredAssignment()
      Returns:
      Groups Target group
    • setDesiredAssignment

      public void setDesiredAssignment​(Groups desiredAssignment)
      Parameters:
      desiredAssignment - Target group
    • getOwnedAssignment

      public Assignment getOwnedAssignment()
      Returns:
      Assignment Owned assignment
    • setOwnedAssignment

      public void setOwnedAssignment​(Assignment ownedAssignment)
      Parameters:
      ownedAssignment - Owned assignment