openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angelo K. Huang" <>
Subject How to set 'ordered' in SequenceGenerator
Date Tue, 02 Nov 2010 19:29:37 GMT

In our system, one field uses Oracle Sequence to generate sequence number as
key. The DB we are using is Oracle in RAC environment. But there is one
issue when using sequence in RAC. The sequence order is not guaranteed. From
this article (,
we can set 'ordered' to enforce global lock on the Oracle sequence among the
RAC nodes. But I can't find any documents talking about the attribute
'ordered' for  SequenceGenerator. Here is how we define the sequence.

    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
    @SequenceGenerator(name = "EVENT_SEQ", sequenceName = "EVENT_SEQ",
allocationSize = 50)

Does anyone have same issue?
View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message