Hi,
I am using postgres 1.8.4 and hibernate 3.2.2. I use sequence generator to create the sequence object, I get the following error when I tried to insert data in the table via my application
org.hibernate.exception.GenericJDBCException: could not get next sequence value
here is my entity class
@Entity @Table(name = "TEST") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TEST") public class Product implements Serializable {
@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID") private Long id; ... ..
I am new to postgres and hibernate... can you please help?
Thanks in advance..
regards
|