| Summary: | [Validation] Validation for customization classes | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||
| Component: | General | Assignee: | Nan Li <nan.n.li> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | neil.hauge | ||||
| Version: | unspecified | Flags: | neil.hauge:
review+
|
||||
| Target Milestone: | 3.0 M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | EclipseLink | ||||||
| Attachments: |
|
||||||
|
Description
Nan Li
1. The validation of the entity customizer class specified in the persistence.xml will be replaced by the validation of the entity customizer class specified against the entity itself. 2. The validation of session event listeners will be deferred till bug 330620 gets fixed. To better handle the bugs, the validation of session event listeners will be tracked with bug 330620 instead of letting both bugs depend on each other. Created attachment 190582 [details] Patch 1. This patch includes the fixes of bug 227138, bug 330610, and bug 331482. 2. The validation logic is 1) if the given value is an empty value, e.g. <property name="eclipselink.profiler" value=""/>, an error is given telling a class should be specified. 2) if the given value is an nonexistent class, an error is given telling the class does not exist on the project classpath. 3) if the given class does not have a public, zero-argument constructor, an error is given telling the class must have a public, zero-argument constructor. (This validation does not apply to session loggers.) 4) if the given class does not implement the right interface, an error message is given telling the class should implement the corresponding interface. bug 330610 in comment #3 should be bug 330619 Patch committed to head. |