I’m trying to update entities with bulk editor but it is giving me this error:
Internal Exception: org.postgresql.util.PSQLException: Can’t infer the SQL type to use for an instance of com.company.valoraciones.entity.PKInvCent. Use setObject() with an explicit Types value to specify the type to use.
This are my entities:
@Table(name = "invcent")
@Entity(name = "valoraciones$Inventario")
public class Inventario extends BaseGenericIdEntity<PKInvCent> {
private static final long serialVersionUID = 1783553617984284809L;
@EmbeddedId
protected PKInvCent id;
@Column(name = "REFE")
protected String refe;
@Column(name = "DESC_ARTI")
protected String desc_arti;
@Column(name = "CANTIDAD")
protected BigDecimal cantidad;
@Column(name = "DEPARTAMENTO", length = 1)
protected String departamento;
@Column(name = "SECCION", length = 3)
protected String seccion;
}
@NamePattern("%s %s %s %s|fecha,pasillo,posicion,tienda")
@MetaClass(name = "valoraciones$PKInvCent")
@Embeddable
public class PKInvCent extends EmbeddableEntity {
private static final long serialVersionUID = 8121121436853374672L;
@Column(name = "TIENDA")
protected String tienda;
@Temporal(TemporalType.DATE)
@Column(name = "FECHA")
protected Date fecha;
@Column(name = "PASILLO")
protected Integer pasillo;
@Column(name = "POSICION")
protected Integer posicion;
}
Could it be jdbc version?
Thanks in advance!