openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Re: Issue with OPENJPA_SEQUENCE_TABLE
Date Wed, 02 Oct 2013 13:10:15 GMT
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.

Mime
View raw message