软件艺术思考者  
混沌,彷徨,立志,蓄势...
公告
日历
<2024年11月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

导航

随笔分类(86)

随笔档案(85)

搜索

  •  

最新评论

阅读排行榜

评论排行榜

 

1.我们平时使用的是debug模式,但有时候这种模式使得启动服务时间非常长,如果不存在类级的Bug,可以直接使用Run模式启动服务。通常可以很快的启动了。但下次再启动服务时,eclipse会使用上一次的启动模式,如果不知道这一点,我们就没办法重新使用debug模式启动了。在run模式下,我们在类里的修改不能立即被服务器识别,不能进行全部的调试。要想重新使用debug模式启动,先点窗口,再点视图,再点server,然后在出现的服务器视图里选择debug模式启动即可。

2.hiberate query.setDate('",newDate()),不能使sql进行时分秒级的比较.此时应该使用.setTimeStamp().
3.hibernate由hbm生成数据库表

package com.movo.tv.common.util;
import java.util.Properties;

import org.hibernate.HibernateException;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
/**
 * 由类反生成表 |generate tables by pojos.
 * @author zlj
 *
 */
public class CreateDB {

private static Configuration config;
static{
   try {
    config=new Configuration().configure();
   } catch (HibernateException e) {
    e.printStackTrace();
   }
}

public static void create(){
   SchemaExport se=null;
   try {
    se=new SchemaExport(config);
    se.setOutputFile("E:\\sql.txt");
    se.create(true,true);
   } catch (HibernateException e) {
    e.printStackTrace();
   }
}

public static void main(String args[]){
   create();
}

}



默认的hibernate.cfg.xml在src文件夹下,至少包括如下内容

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
          "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools.                   -->
<hibernate-configuration>

    <session-factory>
        <property name="connection.username">root</property>
        <property name="connection.url">jdbc:mysql://localhost:3306/movo_new</property>
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="connection.password">root</property>
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <mapping resource="com/movo/tv/pojo/hbm/Artcomment.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/City.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Citytrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Comclasstrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Commentcontext.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Compass.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Compassclass.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Compasstrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MArticle.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCategory.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCategorytrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MChArticleSplit.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCharticletrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MChartmoki.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCity.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCitytrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCollection.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCommentcontext.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCountry.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCountrytrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MCustommodel.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MEnArticleSplit.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MEnarticletrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MEnartmoki.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MFriend.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MFriendgrouplink.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MFriendurl.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MFriendurltranse.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MFriengroup.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MGenre.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MGenretranse.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MGroup.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MImagecomments.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MIndexplace.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MJaArticleSplit.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MJaarticletrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MJaartmoki.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MKoArticleSplit.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MKoarticletrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MKoartmoki.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MLatestvisit.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMessagetranse.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusic.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusicBox.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusiccomments.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusicommtran.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusicset.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusicsettrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusicskin.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MMusictranse.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPagececollect.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPagevisttemp.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPagevisttempvist.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPhotoimages.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPhotoset.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPhotosettrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MPhototrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MReceive.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MRecommendBlog.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MReview.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MReviewcontext.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MSendinfo.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MSmallimages.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MSysmessage.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MTag.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MTagtrance.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MTemplate.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/Muserevent.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MUserinfo.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MUsertag.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MUsertrack.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/MUsetranse.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/SUser.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YActivity.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YActivitytrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YAdv.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YAdvtrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YComment.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YCommenttrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YCompanyzhaopin.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YCompanyzhaopintrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YDiscount.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YDiscounttrans.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YKeyword.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YRecommend.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YReport.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YVideo.hbm.xml"/>
 <mapping resource="com/movo/tv/pojo/hbm/YVideotrans.hbm.xml"/>
    </session-factory>

</hibernate-configuration>

posted on 2007-08-23 15:10 智者无疆 阅读(1808) 评论(8)  编辑  收藏 所属分类: about hibernate
评论:
  • # re: eclipse server tow run's models and others  SELT Posted @ 2007-08-24 11:36
    http://imgcache.qq.com/music/clntupate/QQMusicClickInstall.exe  回复  更多评论   

  • # re: eclipse server tow run's models and others  老婆 Posted @ 2007-08-24 17:04
    呵呵  回复  更多评论   

  • # re: eclipse server tow run's models and others  智者无疆 Posted @ 2007-08-24 21:34
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <link href="css/all.css" rel="stylesheet" type="text/css">
    <script language="JavaScript" type="text/JavaScript" src="js/common.js">
    </script>
    </head>
    <SCRIPT type="text/javascript">
    <!--
    function slideit(img,imagename,step){
    setTransition(imagename);
    imagename.filters.item(0).Apply()
    imagename.src=img[step].src;
    imagename.filters.item(0).Play()
    step=(step+1)%img.length;
    playTransition(imagename);
    setTimeout(function(){slideit(img,imagename,step)},4*750)
    }
    function setTransition(imagename){
    imagename.filters.revealTrans.Transition=Math.floor(Math.random()*23);
    imagename.filters.revealTrans.apply();
    }

    function playTransition(imagename){
    imagename.filters.revealTrans.play()
    }
    //以上这段代码最好在body标签之上。
    -->
    </SCRIPT>
    <body>
    <div id="Layer7" class="左侧">
    <p align="center"><a href="../index.htm">首页</a><span class="style2">|</span>&nbsp;<a href="../other/meishi.html">美食</a><span class="style2">|</span>&nbsp;<a href="../other/meishi.html">营养保健</a><span class="style2">|</span><a href="../other/meishi.html" class="heihei">吃出健康</a><span class="style2">|</span><a href="../other/meishi.html">美味菜谱</a><span class="style2">|</span><a href="../other/meishi.html">文化休闲</a><span class="style2">|</span><a href="../other/meishi.html">饮食论坛</a><span class="style2">|</span><a href="../other/meishi.html">饮食文化</a>|<a href="../other/meishi.html">美颜健身</a><span class="style2">|
    <a href="../other/leave_word.html">留言板</a></span></p>
    </div>
    <div id="Layer9" class="左侧">
    <marquee scrollamount=2 scrolldelay=3 direction="right" valign=middle behavior="scroll" onmouseover=this.stop() onmouseout=this.start()> <img border="0" src="image/1.jpg" width="110" height="90"><img src="image/2.jpg" width="110" height="90"><img src="image/3.jpg" width="110" height="90"><img src="image/4.jpg" width="110" height="90"><img src="image/5.jpg" width="98" height="90"><img src="image/6.jpg" width="110" height="90"><img src="image/7.jpg" width="110" height="90"></marquee></div>
    <div id="Layer5" class="head1">
    <p>加入收藏<br>
    美食论坛 </p>
    <p>


    <script language=JavaScript>
    today=new Date();
    function initArray(){
    this.length=initArray.arguments.length
    for(var i=0;i<this.length;i++)
    this[i+1]=initArray.arguments[i] }
    var d=new initArray(
    "星期日",
    "星期一",
    "星期二",
    "星期三",
    "星期四",
    "星期五",
    "星期六");
    document.write(
    "<font color=##663366 style='font-size:9pt;font-family: 宋体'> ",
    today.getYear(),"年",
    today.getMonth()+1,"月",
    today.getDate(),"日",
    d[today.getDay()+1],
    "</font>" );
    </script>
    <br>
    </p>
    </div>
    <div id="Layer1" class="tt">
    <p align="center">公告栏</p>
    <p><marquee onmouseover=this.stop() onmouseout=this.start() scrollamount="1" direction="up" width="148" height="35">欢迎来到这个网站,希望在这里能找到你所喜欢的东西,多提意见要求,谢谢!</marquee></p>
    <p align="center"><br>
    </p>
    </div>
    <div id="Layer11">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="620" height="85" title="qq">
    <param name="movie" value="index.swf">
    <param name="quality" value="high">
    <embed src="index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="620" height="85"></embed>
    </object>
    </div>
    <div class="hj" id="Layer2">
    <table width="613" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th height="22" align="left" scope="col"><span class="tb01">
    <marquee direction="left" width="613" height="22" scrollamount="3" class="body1" onmouseover=this.stop() onmouseout=this.start()>
    欢迎您来到竹竹美食网,竹竹美食网是集美食文化,美食菜谱,营养美食,美容保健,美食佳肴,健康饮食,美容食品,美食图片,伊人美食,天天饮食,大众美食,东方美食,美食论坛为一体的中国饮食行业的专业化网站。
    </marquee>
    </span></th>
    </tr>
    <tr>
    <td height="126" valign="top"><table width="613" height="126" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th width="137" height="125" align="left" valign="top" scope="col"><a href="other/meishi.html"><img border="1"name=picAddress src=" image\\001.jpg"
    style="FILTER: revealTrans(Duration=3, Transition=26)" width="137px" height="125px"></a>
    <SCRIPT type="text/javascript">
    <!--
    var imgs = new Array(4)
    for(var i=0;i<4;i++)
    {
    imgs[i]=new Image();
    imgs[i].src='image\\00'+(i+1)+'.jpg';
    }
    slideit(imgs,document.picAddress,0);
    //-->
    </SCRIPT></th>
    <th width="476" align="left" valign="top" scope="col"><table width="476" height="125" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFF00">
    <tr>
    <th width="238" height="24" align="left" valign="middle" class="ss" scope="col">&nbsp;<img src="image/t-28.gif" width="20" height="20" align="absbottom">&nbsp;饮食新闻</th>
    <th width="238" height="24" align="left" valign="middle" class="ss" scope="col">&nbsp;<img src="image/t-28.gif" width="20" height="20" align="absbottom">&nbsp;冬季饮食</th>
    </tr>
    <tr>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;“餐时加盐法”可保您健康</td>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;冬季应食温热之品 </td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp; 最新发现:女性抗疲劳重在补铁!</td>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp; 冬季 女性怕冷补什么</td>
    </tr>
    <tr>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;研究称喝咖啡不会增加患心脏病的危险</td>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;只吃蔬菜不吃饭越吃越胖</td>
    </tr>
    <tr>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;研究发现海藻能够提升肠道解毒功能</td>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;冬季营养饮食禁忌 </td>
    </tr>
    <tr>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;美国专家推荐世界上最健康的五种食品</td>
    <td height="22" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;老人冬季多吃鱼 </td>
    </tr>
    </table></th>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td height="31" class="body2">&nbsp;&nbsp;关键字: &nbsp;
    <label>
    <input name="textfield" type="text" size="40">
    </label> &nbsp;&nbsp;

    <select name="select">
    <option>菜单标题</option>
    <option>内容</option>
    </select>
    &nbsp;&nbsp;
    <input name="button" type=button onMouseOver="this.runtimeStyle.background='#FFFFFF'" onMouseOut="this.runtimeStyle.background='#C0C0C0'" value=搜索></td>
    </tr>
    </table>
    </div>
    <div id="Layer3">
    <table width="765" height="170" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th width="152" align="left" valign="top" scope="col"><table width="155" height="186" border="0" align="center" cellpadding="0" cellspacing="0" class="hj">
    <tr>
    <th height="22" bgcolor="#FF8247" class="ss" scope="col">特色佳肴</th>
    </tr>
    <tr>
    <td bgcolor="#FF0000" height="3"></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF" height="3"></td>
    </tr>
    <tr>
    <td height="22" class="heihei">锅巴肉片 | 水煮鱼 | 粉蒸牛肉</td>
    </tr>
    <tr>
    <td height="22" class="heihei">梅菜扣肉 | 酸菜鱼 | 龙凤柔情</td>
    </tr>
    <tr>
    <td height="22" class="heihei">佛手排骨 | 木须肉 | 糖醋里脊</td>
    </tr>
    <tr>
    <td height="22" class="heihei">北京填鸭 | 回锅肉 | 夫妻肺片</td>
    </tr>

    <tr>
    <td height="22" valign="top">&nbsp;</td>
    </tr>
    </table></th>
    <th width="382" align="left" valign="top" scope="col"><table width="382" height="186" border="0" cellpadding="0" cellspacing="0" bordercolor="#FF0000" class="hongse">
    <tr>
    <th width="102" height="22" align="left" valign="middle" bgcolor="#FF0000" class="hh" scope="col">&nbsp;<img src="image/t-28.gif" width="20" height="20" align="absbottom">&nbsp;美食菜谱</th>
    <th width="17" height="22" bgcolor="#FFCCCC" class="hh" scope="col">&nbsp;</th>
    <th width="255" height="22" align="right" bgcolor="#FFCCCC" class="hh" scope="col">更多>>&nbsp;&nbsp;</th>
    </tr>
    <tr>
    <td colspan="3" align="left" valign="top"><table width="382" height="146" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
    <th width="98" height="26" class="heihei" scope="col">满汉全席</th>
    <th width="98" height="26" class="heihei" scope="col"> 川菜</th>
    <th width="98" height="26" class="heihei" scope="col">粤菜</th>
    <th width="98" height="26" class="heihei" scope="col"> 鲁菜 </th>
    </tr>
    <tr>
    <td width="98" height="22" align="center" valign="middle" class="heihei">乳奶鱼卷</td>
    <td height="22" align="center" valign="middle" class="heihei">御龙火锅</td>
    <td height="22" align="center" valign="middle" class="heihei">灵芝恋玉蝉</td>
    <td height="22" align="center" valign="middle" class="heihei"> 清蒸鲈鱼</td>
    </tr>
    <tr>
    <td width="98" height="22" align="center" valign="middle" class="heihei">珊瑚鱼球</td>
    <td height="22" align="center" valign="middle" class="heihei">鸳鸯戏水</td>
    <td height="22" align="center" valign="middle" class="heihei">鱼香腰花</td>
    <td height="22" align="center" valign="middle" class="heihei">荷叶蒸肉</td>
    </tr>
    <tr>
    <td width="98" height="22" align="center" valign="middle" class="heihei">水浒肉</td>
    <td height="22" align="center" valign="middle" class="heihei">土豆回锅肉 </td>
    <td height="22" align="center" valign="middle" class="heihei">蕃茄鸡煲</td>
    <td height="22" align="center" valign="middle" class="heihei">佛手排骨</td>
    </tr>
    <tr>
    <td width="98" height="22" align="center" valign="middle" class="heihei">灵芝鸡汤 </td>
    <td height="22" align="center" valign="middle" class="heihei">繁花似锦</td>
    <td height="22" align="center" valign="middle" class="heihei">炒豌豆夹 </td>
    <td height="22" align="center" valign="middle" class="heihei">金鱼鸭掌</td>
    </tr>
    </table></td>
    </tr>
    </table></th>
    <th width="231" align="left" valign="top" scope="col"><table width="228" height="182" border="0" cellpadding="0" cellspacing="0" class="hj">
    <tr>
    <th width="229" height="22" bgcolor="#FF8247" class="ss" scope="col">汤类大全</th>
    </tr>
    <tr>
    <td bgcolor="#FF0000" height="3"></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF" height="3"></td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;鲜淮山支竹鱼头煲</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;乌鸡汤 </td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;青豆鱼头汤 </td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;胡萝卜土豆骨头汤 </td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;口蘑锅巴汤 </td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;田园汤</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;排骨酥汤</td>
    </tr>
    </table></th>
    </tr>
    </table>
    </div>
    <div id="Layer4">
    <table width="765" height="170" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th width="152" align="left" valign="top" scope="col"><table width="150" height="179" border="0" align="center" cellpadding="0" cellspacing="0" class="hj">
    <tr>
    <th height="22" align="center" valign="middle" bgcolor="#FF8247" class="ss" scope="col">特色小吃</th>
    </tr>
    <tr>
    <td bgcolor="#FF0000" height="3"></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF" height="3"></td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;无为送灶粑粑 </td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;徽州状元饭</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;应城扒肉 </td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;徽州臭豆腐</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;北京的几个面食小吃</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;广西梧州纸包鸡</td>
    </tr>
    </table></th>
    <th width="356" align="left" valign="top" scope="col"><table width="380" height="179" border="0" cellpadding="0" cellspacing="0" class="hongse">
    <tr>
    <th width="117" height="22" align="left" valign="middle" bgcolor="#FF0000" class="hh" scope="col">&nbsp;<img src="image/t-28.gif" width="20" height="20" align="absbottom"> 伊人美食</th>
    <th width="17" height="22" bgcolor="#FFCCCC" scope="col">&nbsp;</th>
    <th width="245" height="22" align="right" valign="middle" bgcolor="#FFCCCC" scope="col"><span class="hh">更多>></span>&nbsp;&nbsp;</th>
    </tr>
    <tr>
    <td colspan="3" align="left" valign="top"><table width="382" height="157" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th width="117" height="148" align="left" valign="middle" scope="col"><img src="image/u=1527617550,4060725732&gp=0.jpg" width="117" height="148"></th>
    <th width="268" align="left" valign="top" scope="col"><table width="268" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th height="22" align="left" valign="middle" class="heihei" scope="col">&nbsp;&nbsp;蔬菜水果减皱纹 辣椒能年</th>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;饭前吃番茄可瘦身</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;蛋清+蜂蜜消除双下巴奇效</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;少吃主食易脱发</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;六种必定发胖的生活恶习</td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;果汁中女人不老的秘密 </td>
    </tr>
    <tr>
    <td height="22" class="heihei">&nbsp;&nbsp;红润女人的饮食疗法</td>
    </tr>

    </table></th>
    </tr>

    </table></td>
    </tr>
    </table></th>
    <th width="255" align="left" valign="top" scope="col"><table width="228" height="181" border="0" align="center" cellpadding="0" cellspacing="0" class="hj">
    <tr>
    <th height="22" bgcolor="#FF8247" class="ss" scope="col">饮食养性</th>
    </tr>
    <tr>
    <td bgcolor="#FF0000" height="3"></td>
    </tr>
    <tr>
    <td bgcolor="#FFFFFF" height="3"></td> </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;43个你必知的健康常识 </td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;秋季必吃的四道“调养菜”</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;15种秋季滋补养颜粥品 </td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;秋凉护胃六要素</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10" align="absbottom">&nbsp;秋天适宜吃南瓜</td>
    </tr>
    <tr>
    <td height="22" align="left" valign="middle" class="heihei">&nbsp;<img src="image/t-07.gif" width="10" height="10">&nbsp;秋天四防</td>
    </tr>
    </table></th>
    </tr>
    </table>
    </div>
    <div id="Layer6">
    <table width="765" height="63" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <th align="center" valign="middle" class="haha" scope="col">竹竹美食网</th>
    </tr>
    <tr>
    <td align="center" valign="middle" class="haha">版权所有copy 联系方式:329624831</td>
    </tr>
    </table>
    </div>
    <div class="hj" id="Layer8">
    <table width="150" height="73" border="0" align="center" cellpadding="0" cellspacing="0" background="image/200543021442047263_r1_c1.jpg">
    <tr>
    <th height="20" align="left" scope="col"><span class="hh">用户名:</span>
    <input name="textfield2" type="text" class="hh" size="7"> </th>
    </tr>
    <tr>
    <td height="20"><span class="hh">密码:&nbsp;</span>&nbsp;
    <input name="textfield3" type="text" class="hh" size="7"> </td>
    </tr>
    <tr>
    <td height="20"><input name="Submit" type="submit" class="hh" onMouseOver="this.runtimeStyle.background='#FFFFFF'" onMouseOut="this.runtimeStyle.background='#C0C0C0'" value="提交">&nbsp;&nbsp;
    <input name="Submit2" type="submit" class="hh" onMouseOver="this.runtimeStyle.background='#FFFFFF'" onMouseOut="this.runtimeStyle.background='#C0C0C0'" value="清空">
    &nbsp;<span class="hh">注册</span> </td>
    </tr>
    </table>
    </div>
    </body>
    </html>

      回复  更多评论   

  • # javascript:兼容ie和ff的定位  self Posted @ 2007-08-25 14:19
    1.精确定位
    but1=document.getElementById(bt1);
    objInput = obj;
    top1=getAbsoluteHeight(objInput)+getAbsoluteTop(objInput);
    top1+="px";
    writeDate();sohwDate();
    objouter.style.top =top1;
    objouter.style.left =getAbsoluteLeft(objInput)+"px";
    objouter.style.display = "block";}
    function getAbsoluteHeight(ob){return ob.offsetHeight;}
    function getAbsoluteWidth(ob){return ob.offsetWidth;}
    function getAbsoluteLeft(ob){var s_el=0;el=ob;while(el){s_el=s_el+el.offsetLeft;el=el.offsetParent;}; return s_el}
    function getAbsoluteTop(ob){var s_el=0;el=ob;while(el){s_el=s_el+el.offsetTop ;el=el.offsetParent;}; return s_el}
    2.大略定位:
    var evt;
    if(evt == null)
    evt = event; // For IE
    evt = evt ? evt : (window.event ? window.event : null);
    // var srcElement = evt.srcElement? evt.srcElement : evt.target; // IE使用srcElement, 而Firefox使用target
    document.getElementById('cc').style.display='none';
    document.getElementById('dd').style.display='none';
    document.getElementById('aa').style.display=document.getElementById('aa').style.display=='none'?"block":"none"
    document.getElementById('aa').style.top=evt.screenY+"px";
    document.getElementById('aa').style.left=evt.screenX+"px";
    if(pid!=0){  回复  更多评论   

  • # re: eclipse server tow run's models and others  selft Posted @ 2007-08-26 19:43
    java Swing开发
    1. Visual Editor——eclipse中进行swing的可视化开发的插件
    eclipse 可视化java组件开发利器
    一直做基于j2ee的web应用,开发工具用的eclipse,最近项目中需要一个可视化的工具,要用swing
    了。可是eclipse中不支持swing的可视化开发。又不想用D版的JBuilder。
    从网上找了一个eclipse的插件——Visual Editor.
    VE简介:
    Visual Editor是一个开源的eclipse编辑器。它同JDT、PDE等其它eclipse的工具项目一样,

    是一个全新的eclipse工具项目。它可以进行可视化的编辑java GUI程序,也能编辑可视化的

    Java Bean组件。它能与eclipse的Java Editor集成在一起,当在Visual Editor中编辑图形

    界面时,会立即反馈到java Editor中的代码。反之亦然。
    其官方网站介绍
    The Eclipse Visual Editor project is a vendor-neutral, open development platform supplying frameworks for creating GUI builders, and exemplary, extensible tool implementations for Swing/JFC and SWT/RCP. These tools are exemplary in that they verify the utility of the Eclipse Visual Editor frameworks, illustrate the appropriate use of those frameworks, and support the development and maintenance of the Eclipse Visual Editor Platform itself.

    The purpose of the Eclipse Visual Editor Project is to advance the creation, evolution, promotion of the Eclipse Visual Editor platform, and to cultivate both an open source community and an ecosystem of complementary products, capabilities, and services. In particular, the Visual Editor Project intends to be useful for creating GUI builders for other languages such as C/C++ and alternate widget sets, including those that are not supported under Java.


    下载与安装
    Visual Editor的官方网站 http://www.eclipse.org/vep/去下载适合你的操作系统平台和
    eclipse、jdk版本的ve吧。
    2 http://blog.sina.com.cn/s/blog_46e73e77010005jz.html

    SWT-Designer5.1.0 for Eclipse3.2破解成功 2006-09-29 13:06:48
    大 中 小
    昨天成功破解了for Eclipse3.2的SWT Designer5.1.0,简单试用了一下,确实比以前的版本更好用。

    破解后的界面:


    可以使用33727天的lisence:




    特别需要注意的是,破解要选WindowBuilder,且序列号的长度为9位,如上图中的WindowBuilderPro-06921-4979就是序列号(06921-4979),WindowBuilderPro-1D3HD-FM0BY-39XS2是key。否则,不能正常破解。op

    3.Jigloo GUI Builder
    4. l2fprod-common   回复  更多评论   

  • # re: eclipse server tow run's models and others  selft Posted @ 2007-08-26 19:48
    http://download.csdn.net/source/222243  回复  更多评论   

  • # hibernate jndi 数据源[未登录]  lijun Posted @ 2008-01-22 10:29
    <beans>
    <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName">
    <value>java:comp/env/jdbc/vonibo</value>
    </property>
    </bean>
    </beans>
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource" ref="dataSource"/>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
    <prop key="hibernate.jdbc.batch_size">50</prop>
    <prop key="hibernate.jdbc.fetch_size">100</prop>
    <prop key="hibernate.show_sql">true</prop>
    <prop key="hibernate.cache.use_query_cache">false</prop>
    <prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
    </props>
    </property>
    <!-- property name="mappingDirectoryLocations">
    <list>
    <value>classpath:/com/wonibo/projectx/model</value>
    </list>
    </property-->  回复  更多评论   

  • # hibernate 内存溢出的解决OpenSessionInViewFilter[未登录]  lijun Posted @ 2008-01-22 10:35
    <filter>
    <filter-name>hibernateFilter</filter-name>
    <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    <init-param>
    <param-name>singleSession</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>hibernateFilter</filter-name>
    <url-pattern>/app/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>hibernateFilter</filter-name>
    <url-pattern>/admin/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>hibernateFilter</filter-name>
    <url-pattern>/services/*</url-pattern>
    </filter-mapping>   回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
 
Copyright © 智者无疆 Powered by: 博客园 模板提供:沪江博客


   观音菩萨赞