Being able to fix my problem with the following modification

@Entity
@SequenceGenerator(name="incidentSeq", sequenceName="INCIDENT_SEQ")
@Table(name = "T_INCIDENT")
public class Incident extends Abstract implements Serializable {

    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE,
generator="incidentSeq")
    //@GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "INCIDENT_ID")
    private long incidentId;

Question : Why  @GeneratedValue(strategy=GenerationType.AUTO) generates the
error reported previously ?



--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Issue-with-OPENJPA-SEQUENCE-TABLE-tp7585016p7585018.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to