propertyentitypk.java

来自「一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考」· Java 代码 · 共 100 行

JAVA
100
字号
/* * Generated by XDoclet - Do not edit! */package org.ejbca.core.ejb;/** * Primary key for BaseProperty. */public class PropertyEntityPK   extends java.lang.Object   implements java.io.Serializable{   public java.lang.String id;   public java.lang.String property;   public PropertyEntityPK()   {   }   public PropertyEntityPK( java.lang.String id,java.lang.String property )   {      this.id = id;      this.property = property;   }   public java.lang.String getId()   {      return id;   }   public java.lang.String getProperty()   {      return property;   }   public void setId(java.lang.String id)   {      this.id = id;   }   public void setProperty(java.lang.String property)   {      this.property = property;   }   public int hashCode()   {      int _hashCode = 0;         if (this.id != null) _hashCode += this.id.hashCode();         if (this.property != null) _hashCode += this.property.hashCode();      return _hashCode;   }   public boolean equals(Object obj)   {      if( !(obj instanceof org.ejbca.core.ejb.PropertyEntityPK) )         return false;      org.ejbca.core.ejb.PropertyEntityPK pk = (org.ejbca.core.ejb.PropertyEntityPK)obj;      boolean eq = true;      if( obj == null )      {         eq = false;      }      else      {         if( this.id != null )         {            eq = eq && this.id.equals( pk.getId() );         }         else  // this.id == null         {            eq = eq && ( pk.getId() == null );         }         if( this.property != null )         {            eq = eq && this.property.equals( pk.getProperty() );         }         else  // this.property == null         {            eq = eq && ( pk.getProperty() == null );         }      }      return eq;   }   /** @return String representation of this pk in the form of [.field1.field2.field3]. */   public String toString()   {      StringBuffer toStringValue = new StringBuffer("[.");         toStringValue.append(this.id).append('.');         toStringValue.append(this.property).append('.');      toStringValue.append(']');      return toStringValue.toString();   }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?