发表新主题 回复该帖子
主题:hibernate-mapping
admin
帖子档案  楼主 hibernate-mapping   Post by : 2008-04-04 10:57:41.0
  • 幼儿园
  • 幼儿园
  • UID:1
  • 主题:30
  • 帖子:70
  • 加为好友 加为好友    发送短信 发送短信
014545 sdsd1asd
签名
JavaWind.Net
返回页面顶部  

admin
2F   Post by : 2008-04-04 11:16:07.0
  • 幼儿园
  • 幼儿园
  • UID:1
  • 主题:30
  • 帖子:70
  • 加为好友 加为好友    发送短信 发送短信

 

java代码
  1. package org.javawind.System;  
  2.  
  3. import java.sql.Timestamp;  
  4.  
  5. import org.apache.struts.action.ActionForm;  
  6. import org.javawind.beans.UbbCode;  
  7.  
  8. public class Post extends ActionForm {  
  9.     private static final long serialVersionUID = 1L;  
  10.     private int pid;  
  11.     private int fid;  
  12.     private String tid;  
  13.     private int parentId;  
  14.     private String title;  
  15.     private String content;  
  16.     private String formatContent="";  
  17.     private int userId;  
  18.     private Timestamp postTime;  
  19.     private UserInfo userInfo;  
  20.     private int floor;  
  21.       
  22.     /****************************************************/ 
  23.     public int getPid() {  
  24.         return pid;  
  25.     }  
  26.     public void setPid(int pid) {  
  27.         this.pid = pid;  
  28.     }  
  29.     public int getFid() {  
  30.         return fid;  
  31.     }  
  32.     public void setFid(int fid) {  
  33.         this.fid = fid;  
  34.     }  
  35.     public String getTid() {  
  36.         return tid;  
  37.     }  
  38.     public void setTid(String tid) {  
  39.         this.tid = tid;  
  40.     }  
  41.     public int getParentId() {  
  42.         return parentId;  
  43.     }  
  44.     public void setParentId(int parentId) {  
  45.         this.parentId = parentId;  
  46.     }  
  47.     public String getTitle() {  
  48.         return title;  
  49.     }  
  50.     public void setTitle(String title) {  
  51.         this.title = title;  
  52.     }  
  53.     public String getContent() {  
  54.         return content;  
  55.     }  
  56.     public void setContent(String content) {  
  57.         this.content = content;  
  58.     }  
  59.     public String getFormatContent() {  
  60.         if(formatContent.equals("")){  
  61.             formatContent=getContent();  
  62.             return UbbCode.Print(formatContent,0,getParentId());  
  63.         }  
  64.         else 
  65.             return formatContent;  
  66.     }  
  67.     public void setFormatContent(String formatContent) {  
  68.         this.formatContent = formatContent;  
  69.     }  
  70.     public int getUserId() {  
  71.         return userId;  
  72.     }  
  73.     public void setUserId(int userId) {  
  74.         this.userId = userId;  
  75.     }  
  76.     public Timestamp getPostTime() {  
  77.         return postTime;  
  78.     }  
  79.     public void setPostTime(Timestamp postTime) {  
  80.         this.postTime = postTime;  
  81.     }     
  82.     public UserInfo getUserInfo() {  
  83.         return userInfo;  
  84.     }  
  85.     public void setUserInfo(UserInfo userInfo) {  
  86.         this.userInfo = userInfo;  
  87.     }     
  88.     public int getFloor() {  
  89.         return floor;  
  90.     }  
  91.     public void setFloor(int floor) {  
  92.         this.floor = floor;  
  93.     }  
  94.     /****************************************************/ 

 

签名
JavaWind.Net
返回页面顶部  

jastby
3F top   Post by : 2008-04-09 22:47:50.0
  • 幼儿园
  • 幼儿园
  • UID:2
  • 主题:126
  • 帖子:219
  • 加为好友 加为好友    发送短信 发送短信
我顶
返回页面顶部  

主题已经被锁定,不允许回复!

CopyRight © 2008-2009 JavaWind.Net Studio All Rights Reserved
Powered By JWind.BBS Vesion 1.0.0 Beta1 Processed in 17 ms,0 (Queries)  Gzip enabled

WAP - 清除Cookies - 联系我们 - JavaWind.Net Studio - Archiver - TOP Valid XHTML 1.0 Transitional Valid CSS! 粤ICP备07511478号