夢幻之旅

          DEBUG - 天道酬勤

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            671 隨筆 :: 6 文章 :: 256 評論 :: 0 Trackbacks
          <2008年9月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          公告

          本博客中未注原創的文章均為轉載,對轉載內容可能做了些修改和增加圖片注釋,如果侵犯了您的版權,或沒有注明原作者,請諒解

          常用鏈接

          留言簿(21)

          隨筆分類(644)

          隨筆檔案(669)

          文章檔案(6)

          最新隨筆

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          package org.test;

          import java.io.Serializable;

          import javax.persistence.Column;
          import javax.persistence.Entity;
          import javax.persistence.GeneratedValue;
          import javax.persistence.GenerationType;
          import javax.persistence.Id;
          import javax.persistence.SequenceGenerator;
          import javax.persistence.Table;

          @SuppressWarnings(
          "serial")
          @Entity
          @Table(name 
          = "t_student")
          public class Student implements Serializable
          {
              @Id
              @GeneratedValue(strategy 
          = GenerationType.SEQUENCE, generator = "TRAIN_SEQ")
              @SequenceGenerator(name 
          = "TRAIN_SEQ", sequenceName = "seq_student_id", allocationSize = 1)
              @Column(name 
          = "student_id")
              Long   studentId;
              
              @Column(name 
          = "student_name")
              String studentName;
              
              
          public Long getStudentId()
              
          {
                  
          return studentId;
              }

              
              
          public void setStudentId(Long studentId)
              
          {
                  
          this.studentId = studentId;
              }

              
              
          public String getStudentName()
              
          {
                  
          return studentName;
              }

              
              
          public void setStudentName(String studentName)
              
          {
                  
          this.studentName = studentName;
              }

          }

          posted on 2008-09-26 12:50 HUIKK 閱讀(288) 評論(0)  編輯  收藏 所屬分類: Hibernate
          主站蜘蛛池模板: 黄大仙区| 新竹市| 兰西县| 长海县| 那坡县| 平乡县| 石屏县| 诏安县| 克拉玛依市| 柏乡县| 泸定县| 盐城市| 龙州县| 吉林市| 永登县| 肇东市| 湖北省| 梁平县| 稻城县| 房产| 祥云县| 石阡县| 津市市| 确山县| 商丘市| 永新县| 建昌县| 乌兰浩特市| 长春市| 泽库县| 洪雅县| 平阴县| 贵南县| 涡阳县| 陆良县| 焉耆| 文化| 德保县| 武乡县| 晴隆县| 台东县|