What is necessary to automatically generate (primary) database keys inside the JBoss AS container.
I'm using Derby 10.1 as database engine.
I'm not calling the database from within an entity bean;
I'm using persistence procedures that work correctly outside the JBoss container.
Thanks
Charlie
if you use EJB3.0 its just as simple as putting the following annotations above the primary key:
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)