I think this will probably do what you want:
@Entity
public class Task {
@Id @GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "task_id")
private int id;
@ManyToOne
@JoinColumn(name = "task_status_id")
TaskStatus status;
}
@Entity
public class TaskStatus {
@Id @GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "task_status_id")
private int id;
@ManyToOne
@JoinColumn(name = "lang_id")
LanguageType languageType;
}
@Entity
public class LanguageType {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "lang_id")
private int id;
}