2
간단한 JPA 매핑이 있지만 계속 Could not determine type for
예외가 발생합니다. 세터 및 게터는 생략됩니다.JPA 상속 유형을 확인할 수 없습니다.
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class SupervisionCommand {
@Id
@GeneratedValue
protected Long id;
}
@Entity
public class MySupervisionCommand extends SupervisionCommand {
}
@Entity
public class Job {
@Id
@GeneratedValue
private Long id;
private SupervisionCommand command;
}
전체 예외 메시지 : 필드
@ManyToOne
private SupervisionCommand command;
기본 매핑 @Column
입니다 : Could not determine type for: com.family.model.SupervisionCommand, at table: job, for columns: [org.hibernate.mapping.Column(command)]