ϵͳѧϰhibernateÖ®ËÄ hibernate¶à¶ÔÒ»¹ØÁªÓ³Éä - ±à³ÌÈëÃÅÍø
ϵͳѧϰhibernateÖ®ËÄ hibernate¶à¶ÔÒ»¹ØÁªÓ³Éäʱ¼ä:2011-01-27 blogjava apple0668Ò»¡¢¹ØÁªÓ³ÉäµÄ±¾ÖÊ£º * ½«¹ØÁª¹ØϵӳÉäµ½Êý¾Ý¿â£¬ËùνµÄ¹ØÁª¹ØϵÊǶÔÏóÄ£ÐÍÔÚÄÚ´æÖеÄÒ»¸ö»ò¶à¸öÒýÓà <many-to-one>»áÔÚ¶àµÄÒ»¶Ë¼ÓÈëÒ»¸öÍâ¼ü£¬Ö¸ÏòÒ»µÄÒ»¶Ë£¬Õâ¸öÍâ¼üÊÇÓÉ<many-to-one> ÖеÄcolumnÊôÐÔ¶¨ÒåµÄ£¬Èç¹ûºöÂÔÁËÕâ¸öÊôÐÔÄÇôĬÈϵÄÍâ¼üÓëʵÌåµÄÊôÐÔÒ»Ö <many-to-one>±êÇ©µÄ¶¨ÒåʾÀý£º * <many-to-one name="group" column="groupid"/> 1¡¢UserµÄPOJOÀࣺ
3¡¢UserµÄÓ³ÉäÎļþUser.hbm.xml£º
4¡¢GroupµÄÓ³ÉäÎļþGroup.hbm.xml£º
|
ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»! |
- ÔÚAppletÖÐÏÔʾͼÏóµÄ·½·¨ - ±à³ÌÈëÃÅÍø
- PhotoshopÖÆ×÷ÂÌÉ«·ç¸ñÍøÕ¾Ê×ҳģ°å
- PS½Ì³Ì:ÈËÎï·ç¾°ÕÕƬµÄ·ç¾°±³¾°´¦Àí
- ʹÓÃ.ashxÎļþ´¦ÀíIHttpHandlerʵÏÖ·¢ËÍÎı¾¼°¶þ½øÖÆÊý¾ÝµÄ·½·¨
- ʹÓÃActionsÃæ°å(2)
- dzÎöWEB±íµ¥Éè¼Æ
- Flash MX2004ÈëÃÅÓë½ø½×ʵÀý¡ª¡ª¶¯×÷½Å±¾½ø½×(6)
- LinuxϵͳÏ´VNCÔ¶³Ì¿ØÖÆÈí¼þ
- Linuxѧϰ±Ê¼Ç£ºsamba·þÎñµÄÅäÖò¹³ä×ÊÁÏ£¨Ê¹ÓÃswat£©
- PSÖÆ×÷ÈÂ×ÅÀÙË¿±ßµÄË®¾§»¨¶ä