You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Pinaki Poddar (JIRA)" <ji...@apache.org> on 2009/05/14 23:41:45 UTC

[jira] Created: (OPENJPA-1086) Investigate the effort to integrate metamodel generation and refactoring in Eclipse IDE

Investigate the effort to integrate metamodel generation and refactoring in Eclipse IDE
---------------------------------------------------------------------------------------

                 Key: OPENJPA-1086
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1086
             Project: OpenJPA
          Issue Type: New Feature
          Components: tooling
            Reporter: Pinaki Poddar


One of the major addition in JPA 2.0 is type-aware Criteria query construction. A string-based JPQL can become invalid when a persistent entity property changes its name or type, but such error is detected only at runtime. On the other hand, for a Criteria query, such an error will be detected at compile time. 
This primary usability advantage of Criteria query can really become useful in an IDE with refactoring support. The native refactoring support provided by IDE though is not sufficient. 
For example, when a persistent property 'xyz' of entity C is renamed to 'abc', the native refactoring support will appropriately change all references to 'C.xyz' to 'C.abc'. However, a Criteria query is built with reference to C_.xyz and *not* C.xyz where C_ is the meta-class corresponding to C. Hence, a IDE plugin should expand the footprint of refactoring to include C_.xyz when C.xyz changes. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.