Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Ignoring oracle sequence
Ignoring oracle sequence [message #686107] Tue, 21 June 2011 14:19 Go to next message
Eclipse UserFriend
I have an entity with the following id configuration:

  @Id
  @Column(name = "NRO_INT_FOO")
  @SequenceGenerator(name = "Foo_SEQ", sequenceName = "ID_FOO_SEQ", allocationSize = 10)
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "Foo_SEQ")
  Long               nroIntFoo;


For some reason the last number of the oracle seguence ID_FOO_SEQ is ignored and sometimes I get an ORA-00001 (unique constraint violated)

Any help is appreciated

Thanks. Mauro.
Re: Ignoring oracle sequence [message #686116 is a reply to message #686107] Tue, 21 June 2011 15:01 Go to previous message
Eclipse UserFriend
Is the oracle sequence object incrementing by 10 to match the allocation size you set in the annotation? Try turning logging on to see the SQL that is generated using <property name="eclipselink.logging.level" value="FINEST"/>

Best Regards,
Chris
Previous Topic:eclipselink-orm.xml and Eclipse JPA views
Next Topic:(no subject)
Goto Forum:
  


Current Time: Mon Jul 07 09:26:49 EDT 2025

Powered by FUDForum. Page generated in 0.28148 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top