Estou com um problema ao mapear uma lista, minhas classes
@Entity
@Table(name = "ORCAMENTOFINI")
public class Orcamentofini implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
private OrcamentofiniPK orcamentofiniPK;
@Column(name = "ORCAMENTOFINI_DATAEMISSAO")
@Temporal(TemporalType.DATE)
private Date orcamentofiniDataEmissao;
@Column(name = "ORCAMENTOFINI_DATAVENCTO")
@Temporal(TemporalType.DATE)
private Date orcamentofiniDataVenc;
@Column(name = "ORCAMENTOFINI_VALOR")
private Double orcamentofiniValor;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "orcamentofiniPK.orcamentofincId", referencedColumnName = "orcamentofincPk.orcamentofincId", insertable = false, updatable = false)
private Orcamentofinc orcamentofinc;
@Embeddable
public class OrcamentofiniPK implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "ORCAMENTOC_ID")
private Integer orcamentocId;
@Column(name = "ORCAMENTOFINC_ID")
private Integer orcamentofincId;
@Column(name = "ORCAMENTOFINI_PARCELA")
private Integer orcamentofiniParcela;
@Entity
@Table(name = "ORCAMENTOFINC")
public class Orcamentofinc implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
private OrcamentofincPK orcamentofincPk;
@Column(name = "ORCAMENTOFINC_TIPOVALOR")
private String orcamentofincTipovalor;
@Column(name = "ORCAMENTOFINC_VALOR")
private Double orcamentofincvalor;
@Column(name = "ORCAMENTOFINC_SITUACAO")
private Integer orcamentofincSituacao;
@Column(name = "USUARIO_ID")
private String usuarioId;
/* Objetos */
@JoinColumn(name = "USUARIO_ID", referencedColumnName = "USUARIO_ID", updatable = false, insertable = false)
@ManyToOne(fetch = FetchType.LAZY)
private Usuario usuario;
@Embeddable
public class OrcamentofincPK implements Serializable {
private static final long serialVersionUID = 1L;
@Column(name = "ORCAMENTOC_ID")
private Integer orcamentocId;
@Column(name = "ORCAMENTOFINC_ID")
private Integer orcamentofincId;
Estou tendo o seguinte erro
Unable to find column with logical name: orcamentofincPk.orcamentofincId in org.hibernate.mapping.Table(orcamentofinc) and its related supertables and secondary tables
Alguem sabe o que poder ser ?