...
Expand | ||
---|---|---|
| ||
|
Creating EJB References
To create an EJB reference, you must use @EJB annotation followed by the modifier, the name of the EJB class and the reference name.
Code Block | ||||
---|---|---|---|---|
| ||||
public class CRMBOBankBranchBean extends CRMBOMasterEntity {
private static final long serialVersionUID = 1L;
@EJB private CRMBOAccountReceivableBean accountReceivableBean;
@EJB private CRMValidatorBean validatorBean;
...
} |
Defining Basic BO Methods
...
This method can be used in cases where the data object must be unique. validateUniqueRecordAgainstDb and and validateUniqueValueComboAgainstDb of of CRMValidatorBean.java can can be used to validate that there is no other data object having the same field value or having the same combination of fields values respectively.
...