S2JDBCã«ã¯ãActiveRecordãDBICãªã©ã®update_or_createçãªã¡ã½ããã¯ãªãããããããã°ãããããã int count = jdbcManager.update(employee).execute(); if (count == 0) { jdbcManager.insert(employee).execute(); } http://ml.seasar.org/archives/seasar-user/2008-February/013029.html ãã£ã¡ã§è¯ãã⦠if (jdbcManager.update(employee).execute() == 0) { jdbcManager.insert(employee).execute(); }
{{#tags}}- {{label}}
{{/tags}}