查看完整版本: [-- hibernate-mapping --]

风信Java论坛 ›› 灌水和测试版面 ›› hibernate-mapping 登录 -> 注册

1F hibernate-mapping   admin Post by : 2008-04-04 10:57:41.0
014545 sdsd1asd
2F    admin Post by : 2008-04-04 11:16:07.0

 

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.     /****************************************************/ 

 

3F top   jastby Post by : 2008-04-09 22:47:50.0
我顶

风信Java论坛 ›› 灌水和测试版面 ›› hibernate-mapping 登录 -> 注册

查看完整版本: [-- hibernate-mapping --]
CopyRight © 2008-2009 JavaWind.Net Studio All Rights Reserved
Powered By JWind.BBS Vesion 1.0.0 Beta1 Processed in 8 ms,0 (Queries)  Gzip enabled
粤ICP备07511478号