Viva
Como o titulo indica, estou a ter um problema em conseguir mapear para hibernate um array do postgres.
Ou seja, no postgres tenho uma tabela assim
CREATE TABLE tabela
(
id serial NOT NULL,
field smallint[]
}
em Hibernate o mapeamento esta em algo assim:
@Entity
@Table(name = "tabela ")
public class Tabela implements Serializable {
@Id
@Column(name="id", columnDefinition = "smallint")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name="field", columnDefinition = "smallint[]")
private Short[] fields;
....
}
contudo, quando tento fazer dá erro de mapeamento da coluna "field".
Será que alguem me poderia ajudar.
Obrigado.
