@Entity public abstract class ProductVoucher extends BaseEntity
Product and a VoucherConfiguration, granting permissions for
vouchers| Constructor and Description |
|---|
ProductVoucher() |
| Modifier and Type | Method and Description |
|---|---|
VoucherConfiguration |
getConfiguration() |
Network |
getNetwork()
Returns the network this entity belongs to
|
Product |
getProduct() |
boolean |
isBuy() |
boolean |
isRedeem() |
void |
setBuy(boolean buy) |
void |
setConfiguration(VoucherConfiguration configuration) |
void |
setProduct(Product product) |
void |
setRedeem(boolean redeem) |
getDataTranslationType, getLogType, getVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toStringpublic VoucherConfiguration getConfiguration()
public Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic Product getProduct()
public boolean isBuy()
public boolean isRedeem()
public void setBuy(boolean buy)
public void setConfiguration(VoucherConfiguration configuration)
public void setProduct(Product product)
public void setRedeem(boolean redeem)