package mk.ukim.finki.mp.crud.model;
/*
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "job_positions")
public class JobPositions {
	
	@Id
	@GeneratedValue
	int job_id;
	
	String position_name;
	
	@OneToMany(mappedBy = "job")
	List<UserJobPosition> ujp;
	
	public JobPositions() {
		// TODO Auto-generated constructor stub
	}

	public JobPositions(int job_id, String position_name) {
		super();
		this.job_id = job_id;
		this.position_name = position_name;
	}

	public int getJob_id() {
		return job_id;
	}

	public void setJob_id(int job_id) {
		this.job_id = job_id;
	}

	public String getPosition_name() {
		return position_name;
	}

	public void setPosition_name(String position_name) {
		this.position_name = position_name;
	}
	
	

}*/

package mk.ukim.finki.mp.crud.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "job_positions")
public class JobPositions {
	
	@Id
	@GeneratedValue
	int job_id;
	
	String position_name;
	
	
	
	public JobPositions() {
		// TODO Auto-generated constructor stub
	}

	public JobPositions(int job_id, String position_name) {
		super();
		this.job_id = job_id;
		this.position_name = position_name;
	}

	public int getJob_id() {
		return job_id;
	}

	public void setJob_id(int job_id) {
		this.job_id = job_id;
	}

	public String getPosition_name() {
		return position_name;
	}

	public void setPosition_name(String position_name) {
		this.position_name = position_name;
	}
	
	

}

Update JobPositions.java