openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpf <mrkspfeif...@gmail.com>
Subject implicit sequence
Date Mon, 27 Sep 2010 08:47:09 GMT

Hi there!
Is it possible to map an implicit sequence with jpa?

for example:
	@Id
	@SequenceGenerator(name = "SEQ_GEN_T_STAAT", sequenceName = "SEQ_T_STAAT")
	@GeneratedValue(generator = "SEQ_GEN_T_STAAT", strategy =
GenerationType.SEQUENCE)
	@Transient
	private Integer id;

this is a definition for an explicit sequence and it works but for know I
must switch to implicit sequences - is there any possibility so map an
implicit sequence?

database: db2
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/implicit-sequence-tp5574006p5574006.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message