¿ìËÙÒµÎñͨµÀ

ϵͳѧϰhibernateÖ®Ò»£ºÀûÓÃhibernateÖеÄSchemaExportÉú³ÉÊý¾Ý - ±à³ÌÈëÃÅÍø

×÷Õß ØýÃû¼¼Êõ À´Ô´ NET±à³Ì ä¯ÀÀ ·¢²¼Ê±¼ä 2012-06-20
n() 12¡¡¡¡¡¡¡¡¡¡¡¡.addClass(User.class); 13 14¡¡¡¡¡¡¡¡//Éú³É²¢Êä³ösqlµ½Îļþ£¨µ±Ç°Ä¿Â¼£©ºÍÊý¾Ý¿â 15¡¡¡¡¡¡¡¡SchemaExport dbExport=new SchemaExport(conf); 16¡¡¡¡¡¡¡¡dbExport.create(true, true); 17¡¡¡¡¡¡¡¡¡¡¡¡} 18}

6¡¢½¨Á¢log4j.propertiesÈÕÖ¾Îļþ

### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change ''info'' to ''debug'' ###

log4j.rootLogger=warn, stdout

PS£ºÒªÔÚmysqlÊý¾Ý¿âÀïÃæÏȽ¨Á¢ºÃusertest±í£¬È»ºóÔËÐÐUserTestÀ࣬ÕâÑù¾Í¿ÉÒÔ˳Àûͨ¹ýhibernate3ÌṩÁË×Ô´øµÄ¹¤¾ßhbm2ddl£¬½¨Á¢¸ù¾ÝÄãµÄ¶ÔÏó½¨Á¢Êý¾Ý¿âÏà¹Ø±í¡£

´ò¿ªmysqlÊý¾Ý¿â£º

ϵͳѧϰhibernateÖ®Ò»£ºÀûÓÃhibernateÖеÄSchemaExportÉú³ÉÊý¾Ý - ±à³ÌÈëÃÅÍø

´ó¹¦¸æ³É£¡

ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!

·ÖÏíµ½£º ¸ü¶à

Copyright ©1999-2011 ÏÃÃÅÁèÖڿƼ¼ÓÐÏÞ¹«Ë¾ ÏÃÃÅÓÅͨ»¥Áª¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾ All rights reserved

µØÖ·(ADD)£ºÏÃÃÅÈí¼þÔ°¶þÆÚÍûº£Â·63ºÅ701E£¨¶«ÄÏÈÚͨÅÔ£© Óʱà(ZIP)£º361008

µç»°£º0592-5908028 ´«Õ棺0592-5908039 ×ÉѯÐÅÏ䣺web@lingzhong.cn ×ÉѯOICQ£º173723134

¡¶ÖлªÈËÃñ¹²ºÍ¹úÔöÖµµçÐÅÒµÎñ¾­ÓªÐí¿ÉÖ¤¡·ÃöB2-20100024  ICP±¸°¸:ÃöICP±¸05037997ºÅ