![]() |
|
Table 1: Validating entity beans
| Validation Condition | Error Messages |
|---|---|
| CMP: Container Managed Fields Valid or not. | BeanName: Invalid field declared as CMF should be primitive, serializable, home./remote. |
| BMP: Persistent fields declared | Bean Name: Persistent fields cannot be declared for BMPs |
| CMP: at least one CMP field | BeanName: CMP bean should have at least one CM field |
| ejbcreate: Not final | Bean Name: ejbcreate should not be final |
| ejbcreate: Public | BeanName: ejbcreate should be public |
| ejbcreate: Not static | BeanName: ejbcreate should not be static |
| ejbCreate: Return type | Bean Name: ejbCreate should return PrimaryKey class. |
| ejbCreate: parameter type | Bean Name: ejbCreate should have valid parameter type. |
| ejbfindbyPK: Not static | BeanName: ejbfindbyPK should not be static |
| ejbfindbyPK: Not final | BeanName: ejbfindbyPK should not be final |
| ejbfindbyPK: Public | BeanName: ejbfindbyPk should be public |
| ejbfindbyPK: valid return type | BeanName: ejbfindbyPK should have valid return type: return type details |
| ejbfindbyPK: valid parameter types | BeanName: ejbfindbyPk should have valid param types: param details |
| ejbFindByPK: Return type | BeanName: ejbFindByPk should return primary Key Class. |
| PKClass: Constructor with no params | BeanName: PKClass should have a constructor with no params |
| PKClass: Public | BeanName: PKClass should be declared public |
| PKClass: Valid RMI-IIOP type | BeanName: PKClass should be a valid RMI-IIOP type |
| CMP: PKClass: all fields within CMFs | BeanName: PKClass should be defined within CMFs |
| CMP: CMFs within bean fields | BeanName: CMF not found in bean |
| CMP: CMFs not transient | BeanName: CMFs should not be declared as transient |
| PKClass: should override equals and hashcode | BeanName: PKClass should override equals and hashcode |
| MultiObject Finders: No ObjectNot found Exception | BeanName: MultiObjectFinders should not throw ObjectNotFoundException |
| CMP: Persistent fields valid | BeanName: Invalid persistent field declared: Field details |
| ejbpostcreate - ejbcreate: match params | BeanName: postcreate and create don't match |
| Home findbyPK: at least one | BeanName: there must be at least one findbyPK on the home interface |
| Home findbyPK: Param Type PKClass | BeanName: the return type of findByPK should be of type PKClass of the bean |
| ejbFinders: Not Static | BeanName: EjbFinder methods cannot be declared static |
| ejbFinders: Not final | BeanName: EjbFinder methods cannot be declared final |
| ejbFinders: Public | BeanName: EjbFinder methods should be declared public |
| ejbFinders: valid parameter types | BeanName: EjbFinder methods should have valid parameter types |
| ejbFinders: Return type | BeanName: EjbFinder methods should return primary key or collection of PKs |
| HomeFinders: Return type | BeanName: Finder Method should return Remote Interface |
| HomeFinders: Finder Exception | BeanName: Finder methods should throw finder exception |
| HomeFinders: corresponding ejbFinder method | BeanName: No corresponding ejbFinder method found: finder method details |
| HomeFinders: Remote Exception | BeanName: Finder method should throw RemoteException |
| ejbPostCreate: Matching create methods | BeanName: all ejbcreate methods should have matching ejbPostCreateMethods |
| ejbPostCreate: Not Final | BeanName: ejbPostCreate Methods cannot be declared final |
| ejbPostCreate: Not Static | BeanName: ejbPostCreate Methods cannot be declared static |
| ejbPostCreate: Return type | BeanName: ejbPostCreate Methods should return void |
| ejbPostCreate: Public | BeanName: ejbPostCreate Methods should be declared public |
| Home Interface Methods: | BeanName: Home Interface Should be only create or finder methods |
| Transaction attributes on remote i/f | - |
| *Home Intf: each method corresponding method pre-fix: ejbHome | BeanName: Home Method <> does not have corresponding method |
| Interface | Interface |
| Interface | Interface |
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |