You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Diran Ayandele <Ad...@Sun.COM> on 2006/03/17 15:37:34 UTC
Re: Using sequences
This is an apt question for me as well. I access my dao from the
service layer to retrieve this, and then pass it back. I struck me as
not very efficient, but logically it works ok because all my DAO calls
come from the same layer... So, is there a better way?
Diran
Paul Carr wrote:
> Hi Guys, whats the best way to insert a row with ibatis when your key
> column is generated from a sequence on the DB ?
>
> Would I edit the sql in the sql map ? or is there a clever way to do it?
>
>
>
>