geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianny Damour <gianny.dam...@optusnet.com.au>
Subject Re: PK Generator Status
Date Sat, 09 Jul 2005 01:22:40 GMT
CMPCreateMethod.execute() implements this logic.

Thanks,
Gianny

On 8/07/2005 10:25 PM, Aaron Mulder wrote:

>Gianny,
>	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?
>
>Thanks,
>	Aaron
>
>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.
>>    
>>
>
>  
>


Mime
View raw message