Hi,
unfortunately the current API is a bit limited and expects you to select to 
find the primary key after the fact.

On Wednesday, October 28, 2020 at 11:52:54 PM UTC+2 [email protected] wrote:

> Hi,
>
> I am using the classes that implement "PropertyBusinessObject".
>
> Create a table as follows:
>              Menu mu = new Menu ();
>              sqlMap.setPrimaryKeyAutoIncrement (mu, mu.sequence);
>              sqlMap.createTable (mu);
>
> When I try to insert a record I do this:
> sqlMap.insert (mu);
>
> Since mu.sequence is autoIncrement, how do I know which number was 
> generated?
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e593b4bc-0fa3-4fe1-87f3-76f79b81a657n%40googlegroups.com.

Reply via email to