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;
}
完整的異常消息:Could not determine type for: com.family.model.SupervisionCommand, at table: job, for columns: [org.hibernate.mapping.Column(command)]