锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品亚洲成a人在线观看,精品亚洲一区二区三区在线播放,国产亚洲精品AA片在线观看不加载 http://www.tkk7.com/keer2345/articles/242168.htmlkeerkeerSun, 23 Nov 2008 14:45:00 GMThttp://www.tkk7.com/keer2345/articles/242168.htmlhttp://www.tkk7.com/keer2345/comments/242168.htmlhttp://www.tkk7.com/keer2345/articles/242168.html#Feedback0http://www.tkk7.com/keer2345/comments/commentRss/242168.htmlhttp://www.tkk7.com/keer2345/services/trackbacks/242168.html 1.寤虹珛涓変釜琛╰b_topic,tb_reply,tb_manager

CREATE TABLE `tb_topic` (
  `id` 
int(10) unsigned NOT NULL AUTO_INCREMENT,
  `author` 
varchar(20DEFAULT NULL,
  `face` 
varchar(10DEFAULT NULL,
  `content` 
text,
  `ip` 
varchar(16DEFAULT NULL,
  `email` 
varchar(100DEFAULT NULL,
  `createTime` 
datetime DEFAULT NULL,
  
PRIMARY KEY (`id`)
) ENGINE
=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `tb_reply` (
  `id` 
int(10) unsigned NOT NULL AUTO_INCREMENT,
  `topcid` 
int(10DEFAULT NULL,
  `author` 
varchar(20DEFAULT NULL,
  `content` 
text,
  `createTime` 
datetime DEFAULT NULL,
  
PRIMARY KEY (`id`)
) ENGINE
=MyISAM DEFAULT CHARSET=utf8;

CREATE TABLE `tb_manager` (
  `id` 
int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` 
varchar(30DEFAULT NULL,
  `pwd` 
varchar(30DEFAULT NULL,
  
PRIMARY KEY (`id`)
) ENGINE
=MyISAM DEFAULT CHARSET=utf8;


2.寤虹珛hibernate閰嶇疆鏂囦歡

<?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/test
    
</property>
    
<property name="dialect">
        org.hibernate.dialect.MySQLDialect
    
</property>
    
<property name="myeclipse.connection.profile">mysql</property>
    
<property name="connection.driver_class">
        com.mysql.jdbc.Driver
    
</property>
    
<property name="show_sql">true</property>
    
<property name="transaction.factory_class">
        org.hibernate.transaction.JDBCTransactionFactory
    
</property>


</session-factory>

</hibernate-configuration>

3.鍒涘緩瀹炰綋綾誨強鍏舵槧灝勬枃浠?br />
package com.actionForm;

public class TopicForm {

    
private int id = -1;
    
private String author = "";
    
private String face = "";
    
private String content = "";
    
private String ip = "";
    
private String email = "";
    
private String createTime = "";
    
    
//getXXX() and setXXX()

}

TopicForm.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC 
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
>
<hibernate-mapping>
    
<class name="com.actionForm.TopicForm" table="tb_topic">

        
<id name="id" column="id" type="int">
            
<generator class="increment" /><!--璁劇疆鑷姩澧炲?/span>-->
        
</id>
        
<property name="author" column="author" type="string"
            not-null
="true" />
        
<property name="face" column="face" type="string"
            not-null
="true" />
        
<property name="content" column="content" type="string"
            not-null
="true" />
        
<property name="ip" column="ip" type="string" not-null="true" />
        
<property name="email" column="email" type="string" />
        
<property name="createTime" column="createTime" type="string"
            not-null
="true" />

    
</class>
</hibernate-mapping>


package com.actionForm;

public class ReplyForm {

    
private int id = -1;
    
private int topicid = -1;
    
private String author = "";
    
private String content = "";
    
private String createTime = "";
    
    
//getXXX() and setXXX()

}

ReplyForm.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC 
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
>
<hibernate-mapping>
    
<class name="com.actionForm.ReplyForm" table="tb_Reply">
        
<id name="id" column="id" type="int">
            
<generator class="increment" /><!--璁劇疆鑷姩澧炲?/span>-->
        
</id>
        
<property name="topicid" column="topicid" type="int"
            not-null
="true" />
        
<property name="author" column="author" type="string" />
        
<property name="content" column="content" type="string" />
        
<property name="createTime" column="createTime" type="string" />
    
</class>
</hibernate-mapping>











keer 2008-11-23 22:45 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 视频免费1区二区三区| 亚洲精品国产suv一区88| jzzjzz免费观看大片免费| 日韩高清在线免费观看| 亚洲中文字幕久久精品无码A| 国产高清免费视频| 亚洲丝袜中文字幕| 成人免费无码大片A毛片抽搐 | 亚洲免费视频一区二区三区| 亚洲av综合av一区二区三区| 午夜色a大片在线观看免费| 亚洲男同gay片| vvvv99日韩精品亚洲| sihu国产精品永久免费| 国产亚洲无线码一区二区| 免费A级毛片无码A∨中文字幕下载| 亚洲一区二区电影| 性xxxx视频播放免费| 美女黄频免费网站| 亚洲愉拍99热成人精品热久久| 可以免费观看的国产视频| 亚洲噜噜噜噜噜影院在线播放| 大学生美女毛片免费视频| 一级成人生活片免费看| 亚洲AV午夜福利精品一区二区| 国产人成免费视频网站| 亚洲AV无码成人精品区狼人影院 | 好爽又高潮了毛片免费下载| 色偷偷尼玛图亚洲综合| 中文字幕日韩亚洲| 在线观看免费中文视频| 亚洲午夜精品久久久久久app | 亚洲一区二区三区免费观看| 亚洲精品无码专区| 日本亚洲国产一区二区三区 | 最近免费中文字幕大全高清大全1| 亚洲久悠悠色悠在线播放| 国产偷窥女洗浴在线观看亚洲| 久久综合给合久久国产免费| 亚洲精品国产精品| 久久亚洲国产成人亚|