it167.com  设为主页
 收藏本站
 
  资讯:业界动态 | 软件动态 | 人物专栏 | 安全资讯 | 网络生活 | 电子商务 | 小游戏 | 视频 | 美女图片 | 音乐
  网络编程 | 网站运营 | 网页制作 | 图形图象 | 操作系统 | 媒体动画 | 软件教学 | 网络应用 | 邮件系统 | 网络安全 | 认证考试
asp | .net | php | jsp | Sql | java | Dreamweaver | FrontPages | Javascript | css | Coreldraw | photoshop | Flash | Coreldraw
当前位置: > 主页>网络编程>Java>JAVA开发技巧>Struts+hibernate开发(源代码)(1)
最新新闻

·机会与整合 边缘化互联
·TOM-Skype新增三大本地
·雅虎抢闸邮箱竞赛 网易
·新浪抢攻北京奥运
·洞悉网络口碑的掘金机会
·拆解网络病毒黑金交易
·木马下载器近期出现新变
·《互联网周刊》第17期文
·Web2.0是否催生自吹自擂
·三张宝宝裸照招来MSN封
热门新闻
·Java SE 6 的HTTP 协议
·Java中对HashMap的深度
·Java调用Oracle的过程和
·开源技术 Eclipse使用技
·深入了解WebLogic的类装
·Java进阶:Struts多模块
·Java初学者入门经典:面
·Jave学习精华:Jsp小结
·Java学习:EJB的专用术语
·编程必备经典:Java常见
推荐新闻
 
 

Struts+hibernate开发(源代码)(1) 

作者:   来源:it167   点击:   日期:2007-01-28

AbstractAdmin.java

/*

* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized

* by MyEclipse Hibernate tool integration.

*

* Created Fri Mar 24 14:48:52 GMT 2006 by MyEclipse Hibernate Tool.

*/

package mappingConfig;

import java.io.Serializable;

/**

* A class that represents a row in the admin table.

* You can customize the behavior of this class by

editing the class, {@link Admin()}.

* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized

* by MyEclipse Hibernate tool integration.

*/

public abstract class AbstractAdmin

implements Serializable

{

/** The cached hash code value for this instance.

Settting to 0 triggers re-calculation. */

private int hashValue = 0;

/** The composite primary key value. */

private java.lang.Integer id;

/** The value of the simple name property. */

private java.lang.String name;

/** The value of the simple password property. */

private java.lang.String password;

/** The value of the simple telphone property. */

private java.lang.String telphone;

/** The value of the simple email property. */

private java.lang.String email;

/** The value of the simple sex property. */

private java.lang.String sex;

/** The value of the simple age property. */

private java.lang.String age;

/**

* Simple constructor of AbstractAdmin instances.

*/

public AbstractAdmin()

{

}

/**

* Constructor of AbstractAdmin instances given a simple primary key.

* @param id

*/

public AbstractAdmin(java.lang.Integer id)

{

this.setId(id);

}

/**

* Return the simple primary key value that identifies this object.

* @return java.lang.Integer

*/

public java.lang.Integer getId()

{

return id;

}

/**

* Set the simple primary key value that identifies this object.

* @param id

*/

public void setId(java.lang.Integer id)

{

this.hashValue = 0;

this.id = id;

}

/**

* Return the value of the name column.

* @return java.lang.String

*/

public java.lang.String getName()

{

return this.name;

}

/**

* Set the value of the name column.

* @param name

*/

public void setName(java.lang.String name)

{

this.name = name;

}

/**

* Return the value of the password column.

* @return java.lang.String

*/

public java.lang.String getPassword()

{

return this.password;

}

/**

* Set the value of the password column.

* @param password

*/

public void setPassword(java.lang.String password)

{

this.password = password;

}

/**

* Return the value of the telphone column.

* @return java.lang.String

*/

public java.lang.String getTelphone()

{

return this.telphone;

}

/**

* Set the value of the telphone column.

* @param telphone

*/

public void setTelphone(java.lang.String telphone)

{

this.telphone = telphone;

}

/**

* Return the value of the email column.

* @return java.lang.String

*/

public java.lang.String getEmail()

{

return this.email;

}

/**

* Set the value of the email column.

* @param email

*/

public void setEmail(java.lang.String email)

{

this.email = email;

}

/**

* Return the value of the sex column.

* @return java.lang.String

*/

public java.lang.String getSex()

{

return this.sex;

}

/**

* Set the value of the sex column.

* @param sex

*/

public void setSex(java.lang.String sex)

{

this.sex = sex;

}

/**

* Return the value of the age column.

* @return java.lang.String

*/

public java.lang.String getAge()

{

return this.age;

}

/**

* Set the value of the age column.

* @param age

*/

public void setAge(java.lang.String age)

{

this.age = age;

}

/**

* Implementation of the equals comparison on

the basis of equality of the primary key values.

* @param rhs

* @return boolean

*/

public boolean equals(Object rhs)

{

if (rhs == null)

return false;

if (! (rhs instanceof Admin))

return false;

Admin that = (Admin) rhs;

if (this.getId() == null || that.getId() == null)

return false;

return (this.getId().equals(that.getId()));

}

/**

* Implementation of the hashCode method conforming to the Bloch pattern with

* the exception of array properties (these are very unlikely primary key types).

* @return int

*/

public int hashCode()

{

if (this.hashValue == 0)

{

int result = 17;

int idValue = this.getId() == null ? 0 : this.getId().hashCode();

result = result * 37 + idValue;

this.hashValue = result;

}

return this.hashValue;

}

}



Admin.java

/*

* Created Fri Mar 24 14:31:50 GMT 2006 by MyEclipse Hibernate Tool.

*/

package mappingConfig;

import java.io.Serializable;

/**

* A class that represents a row in the 'admin' table.

* This class may be customized as it is never re-generated

* after being created.

*/

public class Admin

extends AbstractAdmin

implements Serializable

{

/**

* Simple constructor of Admin instances.

*/

public Admin()

{

}

/**

* Constructor of Admin instances given a simple primary key.

* @param id

*/

public Admin(java.lang.Integer id)

{

super(id);

}

/* Add customized code below */

}



共5页: 上一页 [1] [2] 3 [4] [5] 下一页
文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【论坛讨论

   相关文章:
·设计模式在EJB中的应用 ·让JavaME程序真正Run Anywhere
·利用实体EJB来避免性能缺陷 ·NetBeans 6 M8发布 新添UML建模工具
·Java高手谈论Hibernate的发展之路 ·优化entity Bean的七条准则

   文章评论:(0条)
  
 请留名: 匿名评论   点击查看所有评论 网管论坛
 

  责任编辑:it167  声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。