ÈÕÆÚ£º2011-03-22 16:13:00 À´Ô´£º±¾Õ¾ÕûÀí
<b>ϵͳѧϰhibernateÖ®Èý transient¡¢persistent¡¢detachedÇé¿ö</b>[Java±à³Ì]
¡¡¡¡±¾ÎÄ¡°<b>ϵͳѧϰhibernateÖ®Èý transient¡¢persistent¡¢detachedÇé¿ö</b>[Java±à³Ì]¡±ÊÇÓÉÆßµÀÆæΪÄú¾«ÐÄÊÕ¼¯£¬À´Ô´ÓÚÍøÂçתÔØ£¬ÎÄÕ°æȨ¹éÎÄÕÂ×÷ÕßËùÓУ¬±¾Õ¾²»¶ÔÆä¹ÛµãÒÔ¼°ÄÚÈÝ×öÈκÎÆÀ¼Û£¬Çë¶ÁÕß×ÔÐÐÅжϣ¬ÒÔÏÂÊÇÆä¾ßÌåÄÚÈÝ£º
transient¡¢persistent¡¢detached×´¿ö¹ØϵͼÒÔÏÂ:
1¡¢transient×´¿öµÄÌصã:
* ÔÚÊý¾Ý¿âÖÐûÓÐÓë֮ƥÅäµÄÊý¾Ý
* ûÓйéÈësessionµÄ¹ÜÀí
2¡¢persistent×´¿öµÄÌصã:
* persistent×´¿öµÄ¶ÔÏóÔÚÊý¾Ý¿âÖÐÓÐÓë֮ƥÅäµÄÊý¾Ý
* ¹éÈëÁËsessionµÄ¹ÜÀí
* ÔÚÇåÀí»º´æ£¨ÔàÊý¾Ý²é³£©µÄʱ¿Ì,»áºÍÊý¾Ý¿âͬ²½
3¡¢detached×´¿öµÄÌصã:
* ÔÚÊý¾Ý¿âÖÐÓÐÓë֮ƥÅäµÄÊý¾Ý
* ûÓйéÈësessionµÄ¹ÜÀí
PS:Àí½âÕ⼸ÖÖ×´¿ö¶ÔÉÀûÓÃhibernateÓжԱȴóµÄÒâÒå,¿ª±ÙÀú³ÌÖÐÏ÷¼õºÜ¶à²»±ØÒªµÄ´íÎó.
¡¡¡¡ÒÔÉÏÊÇ¡°<b>ϵͳѧϰhibernateÖ®Èý transient¡¢persistent¡¢detachedÇé¿ö</b>[Java±à³Ì]¡±µÄÄÚÈÝ£¬Èç¹ûÄã¶ÔÒÔÉϸÃÎÄÕÂÄÚÈݸÐÐËȤ£¬Äã¿ÉÒÔ¿´¿´ÆßµÀÆæΪÄúÍƼöÒÔÏÂÎÄÕ£º
±¾ÎĵØÖ·£º | ÓëÄúµÄQQ/BBSºÃÓÑ·ÖÏí! |
[]
[·µ»ØÉÏÒ»Ò³]
[´ò Ó¡]
ÆÀÂÛÄÚÈÝÖ»´ú±íÍøÓѹ۵㣬Óë±¾Õ¾Á¢³¡Î޹أ¡
ÆÀÂÛÕªÒª(¹² 0 Ìõ£¬µÃ·Ö 0 ·Ö£¬Æ½¾ù 0 ·Ö)
²é¿´ÍêÕûÆÀÂÛ