ã¯ã©ã¹å³ã¯ãããªã®ã Hibernateã¨ã使ã£ã¦ï¼å®éã«DBã«æ°¸ç¶åãã¦ã¿ãã°ããã£ããã ãã©ï¼ããã¾ã§æºåãã§ããªãã£ãã®ã§ï¼ãªãã¡ãã£ã¦ã³ã¼ãã§æ¤è¨¼ã ããã¦ã¿ãã 使ãæ¹ã¯ï¼ããã private static void testCat() { CatDAO dao = new CatDAO(); List<Cat> list = dao.findAll(); for (Cat cat : list) { System.out.println("cat = " + cat); } Cat cat = dao.get(); dao.save(cat); } ãã¡ããææéãã«ã¯ã§ããããããªããã¨æãããã£ã¹ãä¸è¦ã ãï¼IDEAã¨NetBeansã®ã³ã¼ãã¢ã·ã¹ãã§ãï¼åå¤æ°ãæå¾ éãã®å¤ã«ãªã£ãããã æ¥ãå¿ãã§ã³ã¼ããæããã¨ã«ããï¼ãªãã¡ãã£ã¦ã ããç´°ããã¨ããã¯æ°ã«ãã¡ãã¤ã«ã³ï¼
{{#tags}}- {{label}}
{{/tags}}