JJUG-CCC æ¥æ¬Javaã¦ã¼ã¶ã¼ãºã°ã«ã¼ãã¯ãã¹ã³ãã¥ããã£ã«ã³ãã¡ã¬ã³ã¹ 2018/12 ç»å£è³æã§ããRead less
ãªã³ã¯ b.hatena.ne.jp ã¯ã¦ãªããã¯ãã¼ã¯ - MVCããªãééã£ã¦ãããï¼ - Qiita digo â ã»ããã¼ã§è°è«ããã® Liveé ä¿¡ãã¦æ¬²ããâ / beatdjam âä»æ¥ã¯ããã§æãåããâ / masraow âããããå®å ¨ã«çä¸æ¡ä»¶ã â / ytRino âã¤ã³ã¿ã¼ãããçä¸è¸äººããª?â / beatdjam âä»æ¥ã¯ããã§æãåããâ / digo â ã»ããã¼ã§è°è«ããã® Liveé ä¿¡ãã¦æ¬²ããâ
Zend Frameworkåå¼·ä¼#2 ã¯GMOãããæ ªå¼ä¼ç¤¾æ§ã®ååããã£ã¦ãçæ³ã§ããããã©ããZend_Dbã«é¢ãã¦èª¤è§£ããããããªæ°ããã¦ããã®ã§(ç§ãå«ãã¦ï¼ä¸éã確èªãã¦ã¿ããã¨ãããã©ãã¼ã¢ããè¨äºã§ãã Zend Frameworkã§å¯¾å¿ãã¦ããã¢ãã«æ§æã¯ããã¡ã¤ã³ã¢ãã«+ãµã¼ãã¹ã¬ã¤ã¤ã¼ã§ç´æ¥çã«ã¯ãã¼ã¿ãããã¼ã§ãã CakePHPã§ã¯æ¨æºã§ã¯ActiveRecordãæ¡ç¨ãã¦ããã¨æãã¾ããããããCakePHPãsymfonyã§å¦ç¿ãã¦ãã人ãä¸çªæåã«æ¸æãé¨åã§ã¯ãªããã¨æãã¾ããã¾ããåå¦è ããã¼ã¿ãããã¼ã®æ義ããããªãç解ããã®ã¯é£ãããããªæ°ããã¾ãã è¦ã¯ãå¤ãã®åå¿è ãâã¢ãã«ã£ã¦ãDBãã¼ãã«ã®ãã¨ã ããâã¨èãã¦ãã¾ãã®ã¯ãããªããã¨ãçµæçã«ã³ã³ããã¼ã©ããµããããããUnitTestã§å½±é¿ãåºã¦ãã¾ããã¨ãã話ã«ãªã£ã¦ãã¾ãã - Cake
å æãæ°ããEntity Framework 4ãã³ã¼ãã»ãã¡ã¼ã¹ããéçºãªãã·ã§ã³ã«ã¤ãã¦ããã°æ稿ãã¾ãããEFãã³ã¼ãã»ãã¡ã¼ã¹ããã¯ãã¼ã¿ãæ±ãããã®é常ã«åªãããã³ã¼ãä¸å¿ãã®éçºã¯ã¼ã¯ããã¼ãå¯è½ã«ãã¾ããããã«ãã以ä¸ã®ãã¨ãå¯è½ã§ãã ãã¶ã¤ããéãããXMLãããã³ã°ãã¡ã¤ã«ãå®ç¾©ããããããã¨ãªããã¼ã¿ãæ±ãã ãã¼ã¹ã»ã¯ã©ã¹ãªãã®ãã¬ã¼ã³ã»ãªã¼ã«ãã»ã¯ã©ã¹ãæ¸ãã ãã§ã¢ãã«ã»ãªãã¸ã§ã¯ããå®ç¾© æ示çãªè¨å®ããããã¨ãªãããã¼ã¿ãã¼ã¹ã®æ°¸ç¶åãå¯è½ãªè¨å®ã«åãè¦ç´ãä½¿ç¨ ååã®ããã°æ稿ã§ãEFãã³ã¼ãã»ãã¡ã¼ã¹ãããç´¹ä»ããæ°ãããã¼ã¿ãã¼ã¹ãä½æããæã®ããã©ã«ãã®EF4ãããã³ã°è¦ç´ã®ä½¿ç¨æ¹æ³ããè¦ããã¾ããããããã®ããã©ã«ãã®è¦ç´ã¯æ°ããã¢ããªã±ã¼ã·ã§ã³ã«é常ã«ãã¾ãåä½ãããã¼ã¿ãã¼ã¹ã¸ã¾ããã¼ã¿ãã¼ã¹ããã¯ã©ã¹ããããããã®ã«æ示çã«ä½ããæ§æããªãã¦ã
O/Rãããã¼ï¼ORMï¼ãSQLããã¨ãã話ãä¸é¨ã§çãä¸ãã£ã¦ããã®ã§è¿½ãããã¦ãã¾ããã ORMã«ã¤ãã¦ã¯ä»¥ä¸ã®ãããªè¦æ¹ããããã¨ãã§ãã¾ãã ãæåããããããè¦ç´ ããªãã¸ã§ã¯ãæåã§è¨è¨ãå®è£ ããã¨æ±ºããæ°è¦éçºã·ã¹ãã ãªãã°ORMã¯æåãªæ¡ç¨åè£ã ãéãªãã¸ã§ã¯ãæåã§è¨è¨ãå®è£ ãããã·ã¹ãã ã«ORMã¯ãã¾ãåãã¦ããªãã ãªã®ã§ããã§ã«åå¨ãã¦ãããã¼ã¿ãã¼ã¹ä¸ã§å¥ã®æ°ããã·ã¹ãã ãæ§ç¯ãããããªå ´åã¯ãORMã¯ãã¾ãåãã¦ããªãã¨æãã¾ãã O/Rãããã³ã°ãã¼ã«ã«å¯¾ãã誤解ãã¨ããã - ITã¯è¸è¡ã å¼ç¨ããã¨ã³ããªã¯ã¨ã¦ãå·éã«ORMã®å©ç¹ã説æãã¦ããè¯è¨äºã§ãã ãã®è¨äºã®å 容ã«ã¯å ¨é¢çã«è³åãã¤ã¤ãèªåã¨ãã¦ã¯SQLå´ããã¡ãã£ã¨æ¸ãã¦ã¿ããã¨æãã¾ãã 以åã試ãã«ã¯ã¨ãªã«ä»éãããã¸ãã¯ãã§ããã ãDMBSå´ï¼SQLï¼ã«å¯ããããã«ãã¦éçºãããã¨ãããã¾
S2Dao.PHP5 æ¦è¦ JavaçS2DaoãPHP5ã«ç§»æ¤ãã¾ãã S2Dao.PHP5 ãå©ç¨ããã«ã¯ææ°çã® S2Container.PHP5 ãå¿ è¦ã§ãã ãªã³ã¯ ãªãã¸ã㪠SVNãªãã¸ããªãã©ã¦ã¶ ãã©ããã³ã° ãã¦ã³ãã¼ã labs.s2php5.jp S2Dao.PHP5ã®ç¹å¾´ S2Dao.PHP5ã¯ä»¥ä¸ã®ãããªç¹å¾´ãæã¡ã¾ãã XMLä¸è¦ã®O/Rãããã³ã° S2Dao.PHP5ã§ã¯ããã¼ã¿ãã¼ã¹ã¨PHP5ã¯ã©ã¹ã®ãããã³ã°æ å ±ã«XMLã使ç¨ãããã¨ãªãO/Rãããã³ã°ãããã¨ãå¯è½ã§ãã SQLã®èªåçæ S2Dao.PHP5ã§ã¯ãã¡ã½ãããå½åè¦åã«åããããã¨ã§ãSQLæã®è¨è¿°ãä¸è¦ã§èªåçã«SQLæãçæããããã¨ãã§ãã¾ãã 2Way SQL S2Dao.PHP5ã§ã¯ãèªåçæãããSQLã®ä»ã«ä»»æã®SQLãå®è¡ãããã¨ãã§ãã¾ãããã®SQLã¯ãã¡ã¤ã«ã«è¨è¿°ã
PDOã§Prepareããã°æ®ã©ä½æ¥ãç°¡åã«çä»ããããã£ã±ãO/R mapperã§æ¥½ãããããªã¨æã£ãã ããããè¦ã¦ã¿ãã¨ã Propelã®PDOç Propel 1.3 Seasarã®PHPç S2Container.PHP5 Cybozuã®CBLããCBL ActiveRecord Zend FrameWork Zend_Db ãè¦ã¤ãã£ããZend_Dbã¯APIãåºå®ããã¦ãããã©ãarrayããã£ã±ãåºã¦ãã¦å¥½ããããªããSeasarã¯Javaã®ç§»æ¤ãªã®ã§è¨å®XMLã¨ãé¢åãããããªã®ã§ãã¹ãPropelã¯æ®æ®µä½¿ã£ã¦ãããããç¥ã£ã¦ããCybozuã®CBLã試ãã¦ã¿ãã 使ãæ¹ã¯ãæ¥æ¬èªããã¥ã¡ã³ããã·ã³ãã«ã§ããããããã http://31tools.com/cbl_activerecord/README.ja.utf8.html ãã ãPostgreSqlã®7.xã§ä½¿ãã¨
hibernateãå©ç¨ãã¦ã¯ãããªãï¼ã¤ã®ã·ãã¥ã¨ã¼ã·ã§ã³(ãªã³ã¯ã¯è¨äºæä¸é¨ã®é¢é£ã³ã³ãã³ãã«ããã¾ã)ã§ã¯ã å¤æ°ã®æ¹ããããã¯ããããã¨ããææãããã ãã¾ããã ç¹ã«koichikããã¯ç§ã®ä»£ããã«æ§ã ãªæ¤è¨¼ãè¡ã£ã¦ãã ããããã®ãããã§ãã£ã¨hibernateã®ç ã®ããã¤ãç¥ããã¨ãåºæ¥ã¾ããï¼ãããããã¥ã¡ã³ãã«ã¯æ¸ãã¦ãããã§ããããï¼ã ç´å¾ããããªãã¨é å¼µã£ã¦ããã·ãã¥ã¨ã¼ã·ã§ã³ï¼ï¼åä¸Transactionå ã§ã»ã¬ã¯ãããå ¨ã¦ã®ãªãã¸ã§ã¯ããTransactionã³ãããæã«åæã«æ´æ°ï¼ã«ã¤ãã¦ãhibernateã®ä½¿ç¨æ¹æ³ãçãç解ãã¦ããªãã£ãããã«é¥ã£ã誤ã£ãèªèã§ããï¼ä½è£ãåºæ¥ã¦ã³ã¼ããè¦ãã¨ããã«ã¸ããã ï¼ã hibernateã®ä»æ§ãç解ãã¦ä½¿ç¨ããåã«ã¯hibrenateã«åé¡ã¯ããã¾ããã ï¼ãã çããããããããã¨ã¯ç¢ºãã§
ãã¾ãã強調ããã¾ã§ããªããä»æ¥ããã¼ã¿ãã¼ã¹ã¨ããã°ããªã¬ã¼ã·ã§ãã«ã»ãã¼ã¿ãã¼ã¹ï¼ä»¥éãRDBï¼ã主æµã§ãããã¨ã¯ééããªããããããC#ãJavaãC++ã¨ãã£ããªãã¸ã§ã¯ãæåè¨èªã®å°é ã«ãã£ã¦ãRDBã常ã«æé©è§£ã¨ã¯ãããªãç¶æ³ãçºçãã¤ã¤ãããã¨ããã®ããRDBã¨ãªãã¸ã§ã¯ãæåè¨èªã§æ±ããªãã¸ã§ã¯ãã¨ã¯ãããããã®æ§é ãç°ãªãããã ã ãªãã¸ã§ã¯ãæåã«åºã¥ãã¦ãã¼ã¿ãã¼ã¹ã»ã¢ã¯ã»ã¹ãè¡ããã¨ããã°ãä¾ãã°INSERTå½ä»¤ãçºè¡ããã«ã¯ããã¼ã¿ãã¼ã¹ã«æ ¼ç´ãã¹ãå¤ããªãã¸ã§ã¯ãããåãåºããINSERTå½ä»¤ãåçã«çµã¿ç«ã¦ãå¿ è¦ãããï¼1ã¤ã®ãªãã¸ã§ã¯ãããã¼ãã«å ã®1ã¬ã³ã¼ãã«å¯¾å¿ãããå ´åï¼ãéã«ãSELECTå½ä»¤ã§ãã¼ã¿ãã¼ã¹ããåãåºããçµæã»ããã¯ããªãã¸ã§ã¯ããçæãã¦ãããçµæã»ããå ã®åå¤ã対å¿ãããªãã¸ã§ã¯ãã®ããããã£ã«ä»£å ¥ããªããã°ãªããªãã ãã®ãããª
ååã§ã¯ãO/Rãããã³ã°ããã³O/Rãããã³ã°ã»ãã¼ã«ã®æ¦è¦ã«ã¤ãã¦è§£èª¬ãã.NETåãã®ä»£è¡¨çãªO/Rãããã³ã°ã»ãã¼ã«ã§ãããNHibernateããç´¹ä»ããã O/Rãããã³ã°ã»ãã¼ã«ã使ãã°ãï¼C#ãVB.NETã®ï¼ãªãã¸ã§ã¯ãã¨ãã¼ã¿ãã¼ã¹ä¸ã®ãã¼ãã«ã¨ããããã³ã°ã§ãããããã«ãã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ããã¯ãªãã¸ã§ã¯ãã®ããããã£ã«ã¢ã¯ã»ã¹ããã ãã§ãç´æçã«ãã¼ãã«ä¸ã®åãã£ã¼ã«ãã«ã¢ã¯ã»ã¹ãããã¨ãå¯è½ã«ãªãã¨ããããã ã ååã®åé ã§ç¤ºãã¦ããããã«ã.NETç°å¢ã§å©ç¨å¯è½ãªO/Rãããã³ã°ã»ãã¼ã«ã¯ãã§ã«ããã¤ããæä¾ããã¦ãããä»åã¯ãNHibernateã¨ä¸¦ã³.NETåãã®ä»£è¡¨çãªO/Rãããã³ã°ã»ãã¼ã«ã§ãããiBATIS.NETãã«ã¤ãã¦è§£èª¬ããªãããå®éã«ãããå©ç¨ããASP.NETã®Webã¢ããªã±ã¼ã·ã§ã³ãä½æãã¦ããã ååã§è¦ãããã«ãNHiberna
ä¸ã®ä¸ã¯hibernate礼è³ã®ãµã¤ãã沢山ããã¾ãã O/Rã®ä¸ã§ã¯ãã©è²ã®ä¸çãåºãã£ã¦ããããã«é¯è¦ãã¦ãã¾ãã¾ãã ãããå®éã«ãã¸ã«ä½¿ç¨ããã¨ãã²ã©ãç®ã«éãå±é¢ã沢山ããã¾ãã -- 2007/01/16 è¿½è¨ ããã«æ å ±ãæ¢ãã«ãã¦ãããããªã²ã¨ã¯ãæªããã¨è¨ãã¾ããã®ã§hibernateã®æ¡ç¨ãä¸æ¢ããªããã å©ç¨ãã ãã¦ãã¦ããä»å¼ãè¿ããæ¹ãå·¥æ°ãæ¸ãã¾ããééããªãã1年以ä¸çµã£ãä»ã§ããhibernateã®ãªãã¢ãå æ¸ã«ã¯æ £ãã¾ããã -- 2007/01/16 追è¨ããã¾ã§ -- ããããè¿½è¨ ä¸è¨ï¼ç¹ã«ã·ãã¥ã¨ã¼ã·ã§ã³ï¼ï¼ã«ã¤ãã¦ãåæ¤è¨¼ãè¡ãå¿ è¦ãããããã§ãã å¿ ããkoichikããã®ããã°ãä½µèªãã¦ãã ããã http://d.hatena.ne.jp/koichik/20051002#1128268814 http
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}