package com.josemnieves.warsservice.Model.Dungeon;

import javax.persistence.*;

/**
 * Created by Jose M Nieves on 8/18/2015.
 */
@Entity
@Table(name = "dungeon_paths")
public class DungeonPath
{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "dungeon_paths_id")
    private Integer dungeonPathId;
    @Column(name = "dungeon_id")
    private Integer dungeonId;
   //private Integer path_id;

    @OneToOne
    @JoinColumn(name="path_id")
    private Path path;

    public DungeonPath(){}
    public DungeonPath(Integer dungeon_id, Integer path_id)
    {
        this.dungeonId=dungeon_id;
        this.path.setId(path_id);
    }

    public Integer getDungeonPathId() {
        return dungeonPathId;
    }

    public void setDungeonPathId(Integer value) {
        this.dungeonPathId = value;
    }

    public Integer getId() {
        return dungeonPathId;
    }

    public void setId(Integer value) {
        this.dungeonPathId = value;
    }

    public Integer getDungeonID() {
        return dungeonId;
    }

    public void setDungeonID(Integer value) {
        this.dungeonId = value;
    }

    /*public Integer getPathID() {
        return path_id;
    }

    public void setPathID(Integer value) {
        this.path_id = value;
    }*/

    public Path getPath() {
        return path;
    }

    public void setPath(Path value) {
        this.path = value;
    }
}
