èªå·±ç´¹ä» ä¸æ twitter: @nakamura_to GitHub: nakamura-to Java 8ã®æ°æ©è½ ã©ã ãå¼ Stream API Date and Time API Optional ããã©ã«ãã¡ã½ãã ããå ¨é¨ Doma 2 ã§ä½¿ãã¾ãï¼ Doma ã¨ã¯ï¼ S2Daoããçºå±ããDBã¢ã¯ã»ã¹ã©ã¤ãã©ãª 2 way SQL 注éå¦ç ä¾åã©ã¤ãã©ãª 0 Doma 1 㯠Java 6 以ä¸ã§åä½ Doma 2 ã¯Doma 1 ã Java 8 ã«æé©å ã©ã ãå¼ TransactionManager tm = ... tm.required(() -> { Emp emp = dao.selectById(1); emp.setAge(emp.getAge() + 1); dao.update(emp); }); Stream API @Dao public int
{{#tags}}- {{label}}
{{/tags}}