ãã®ãã¡ã¤ã³ã¢ãã«ã«åºã¥ãã¦ãã¾ã第ä¸ã«ããã®ã¢ã¼ãã£ã¯ã«ã§ã¯ãã©ã®ããã«Hibernate/JPAã使ã£ã¦ãScalaã«ããã Personã¨ã³ãã£ãã£ç¨ã® ã¸ã§ããªãã¯Data Access Object (DAO) ã¨å ·ä½çãªDAOã®å®è£ æ¹æ³ã示ãããã®çµæã PersonDaoã«ã CRUDæä½ãå®è¡ã§ããããã«ãªãããä¾: val p1 = new Person(âRod Johnsonâ) val p2 = dao.findByName(âMartin Oderskyâ) p1.link(p2) personDao.save(p1) Step 2 ãããããã®ã¢ã¼ãã£ã¯ã«ã¯ãPerson ã¨ã³ãã£ãã£ãããªãããªããã¡ã¤ã³ãªãã¸ã§ã¯ãã«å¤æããã®ã«ãä½ãå¿ è¦ãªã®ããè¦ç´ããããã®ãªãã¸ã§ã¯ãã¯ãå é¨ã§ NotificationServiceã使ã£ã¦ãlinkã¡ã½ãããå¼ã°ããã¨
{{#tags}}- {{label}}
{{/tags}}