A lot of the examples that comes with the Orion application server uses the counter.jar utilities for handling unique Id:s in a J2EE compliant way.
IMHO, its a great tool.
> Is there a way to let the database take care of the primary key value
> creation? I just want to create a new entity bean (and
> therefore a new
> record in the DB) without worrying about what its primary key
> should be. i
> want to let the DB take care of that. Can anyone help me
> with this? is
> this process server specific or j2ee specified? thanks for any help.
>