/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Version;

@Entity
public class Punkt implements Serializable{
  @Id @GeneratedValue
  private int id;
  private int x;
  private int y;
  @Version
  private int version;

  public Punkt(int x, int y) {
    this.x = x;
    this.y = y;
  }

  public Punkt(){}

  @Override
  public String toString(){
    return "["+x+","+y+"]";
  }

  public int getId() {
    return id;
  }

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

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public int getX() {
    return x;
  }

  public void setX(int x) {
    this.x = x;
  }

  public int getY() {
    return y;
  }

  public void setY(int y) {
    this.y = y;
  }


}
