You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dao dao = new Dao();
dao.foo = "bar";
Database.get().insert(dao);
where Dao is an instance of DataAccess, it is saved into the database correctly. That is to say, in the database the xml has an autogenerated ID created for me and the foo is set to bar. However, in the Dao object itself, after I call insert on it, I have no way of knowing what the ID is of that record that was just created. the insert method needs to set the ID on the DataAccess after the insert completes.
When I insert a new record using:
the Integer id of the dao is never set to the record created.
The text was updated successfully, but these errors were encountered: