?? productpk.java
字號:
package com.wiley.compBooks.roman.entity.product;
import java.io.Serializable;
/**
* Primary Key class for our 'Product' Container-Managed
* Entity Bean
*/
public class ProductPK implements java.io.Serializable {
/*
* Note that the primary key fields must be a
* subset of the the container-managed Bean fields.
* The fields we are marking as container-managed in
* our Bean are productID, name, desc, and basePrice.
* Therefore our PK fields need to be from that set.
*/
public String productID;
public ProductPK(String productID) {
this.productID = productID;
}
public ProductPK() {
}
public String toString() {
return productID.toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -