geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <>
Subject Re: PK Generator Status
Date Fri, 08 Jul 2005 12:25:07 GMT
	My understanding of AutoIncrementPrimaryKeyWrapper is that it
executes an insert on some table during the PK generation phase.  I
thought that couldn't be the "entity table" since then when the entity
goes to insert itself it would find that the row already existed.  How is
it that the AutiIncrement PK generator communicates to the entity that its
row already exists?


On Fri, 8 Jul 2005, Gianny Damour wrote:
> >1) Implement a PK Generator that handles an EJB on a table that 
> >automatically populates a PK value in itself (via an AUTO_INCREMENT column 
> >or a trigger or whatever).  I think it would basically just hold a column 
> >name, and then the part of TranQL that created entities would need logic 
> >to recognize that, perform the insert as usual, and then fetch the PK ID 
> >value as an auto-generated key afterward.
> >  
> >
> org.tranql.pkgenerator.AutoIncrementTablePrimaryKeyGenerator does that.

View raw message