| Summary: | [Metamodel] Moving entity to another package leads to errors | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||
| Component: | JPA | Assignee: | Brian Vosburgh <brian.vosburgh> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | neil.hauge | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 3.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Nan Li
Created attachment 206819 [details]
Stack Trace
Created attachment 206820 [details]
Snapshoot
The error message seems to be caused by AbstractPersistenceUnit.validateClassRefs because we are trying to verify the existence of the class refs listed in the persistence.xml; however, one of the classes is already moved to the new package but the persistence.xml doesn't get updated when we are moving the entity to a new package through quick fix so the persistence.xml still refers to the old class path. These problems seem to have been fixed by the major rework of JpaProjectManager. This is probably because JPA validation now runs with a lock on the project (before, it ran unprotected). I have tested this use case and it seems to make sense that the problem should no longer occur; but you never know.... :-) If this problem re-occurs, please re-open this bug. |