Re: [JBoss-user] primary key: auto-increment

2004-02-06 Thread Ivens Porto
Victor Batista wrote: > > Hi! > Thanks for your reply! > > > > Is there any way to have incremental primary keys without the > > > explicit usage of sequences? If yes, how? > > > > What do you mean by implicit use of sequences? > Is it possible to have an incremental primary key without t

RE: [JBoss-user] primary key: auto-increment

2004-02-05 Thread Alexey Loubyansky
> > What do you mean by implicit use of sequences? > Is it possible to have an incremental primary key without the > usage of sequences? UUIDKeyGeneratorFactory key-generator-factory is the JNDI name under which an impl of org.jboss.ejb.plugins.keygenerator.KeyGener

RE: [JBoss-user] primary key: auto-increment

2004-02-05 Thread Victor Batista
Hi! Thanks for your reply! > > Is there any way to have incremental primary keys without the > > explicit usage of sequences? If yes, how? > > What do you mean by implicit use of sequences? Is it possible to have an incremental primary key without the usage of sequences? Which is the bett

RE: [JBoss-user] primary key: auto-increment

2004-02-05 Thread Alexey Loubyansky
> Is there any way to have incremental primary keys without the > explicit usage of sequences? If yes, how? What do you mean by implicit use of sequences? > What can I win with a unknown-pk declaration? There is a paragraph in the spec about it called Special case Unknown primary keys. > Is th

[JBoss-user] primary key: auto-increment

2004-02-05 Thread Victor Batista
Hello! I am using JBoss 3.2.3 with Postgres 7.3.4. I am trying to generate primary keys automatically. When I use the following entity-command, with the sequence previously created, everything works fine: * @jboss.entity-command *name="pk-sql" * @jboss.entity-command-attribute *