📄 timeentrypk.java
字号:
package com.wiley.compBooks.EJwithUML.TimeCardDomain;
import java.io.Serializable;
/**
* The TimeEntry bean holds a single time entry.
*
* TimeEntryPK is the primary key class for the underlying entity bean. It is,
* id = timecard-id + entry-count-for-timecard
*/
public class TimeEntryPK implements Serializable
{
public String id;
public TimeEntryPK()
{
}
public TimeEntryPK(String id)
{
this.id = id;
}
public String toString()
{
return id;
}
public int hashCode()
{
return id.hashCode();
}
public boolean equals(Object key)
{
if (key == null)
{
return false;
}
else
{
if (!key.getClass().equals(this.getClass()))
{
return false;
}
else
{
return ((TimeEntryPK)key).id.equals(this.id);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -