package de.fhdw.wipbank.server.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.sun.jmx.snmp.Timestamp;

@XmlRootElement
public class Transaction {
    private int id;
    private Account sender;
    private Account receiver;
    private BigDecimal amount;
    private String reference;
    private Timestamp transactionDate; // siehe Schnittstellen/Aufrufbeispiele -> Timestamp: "transactionDate" : "2016-03-11T17:08:14+0100"

    @XmlTransient
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Account getSender() {
        return sender;
    }

    public void setSender(Account sender) {
        this.sender = sender;
    }

    public Account getReceiver() {
        return receiver;
    }

    public void setReceiver(Account receiver) {
        this.receiver = receiver;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public Timestamp getTransactionDate() {
        return transactionDate;
    }

    public void setTransactionDate(Timestamp transactionDate) {
        this.transactionDate = transactionDate;
    }

}

@@ -186,44 +186,8 @@
 t;%0A%0A
-import com.sun.jmx.snmp.Timestamp;%0A%0A
 @Xml
@@ -380,135 +380,29 @@
 ate 
-Timestamp transactionDate; // siehe Schnittstellen/Aufrufbeispiele -%3E Timestamp: %22transactionDate%22 : %222016-03-11T17:08:14+0100%22
+Date transactionDate;
 %0A%0A  
@@ -1150,25 +1150,20 @@
  public 
-Timestamp
+Date
  getTran
@@ -1256,17 +1256,12 @@
 ate(
-Timestamp
+Date
  tra

Revert "transactionDate : Date -> Timestamp"