Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Development/JPA 2.0/query definition api"

(New page: = Query Definition API = JPA 2.0 Root | [http://bugs.eclipse.org/249218 Enhancement Request] ==Issue Summary== JPA 2.0 specification has introduced ...)
 
(Extensions)
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
==Issue Summary==
 
==Issue Summary==
 
JPA 2.0 specification has introduced a comprehensive object oriented query definition API which compliments JPQL.
 
JPA 2.0 specification has introduced a comprehensive object oriented query definition API which compliments JPQL.
This spec component is still under development.
+
 
 +
This feature is covered in section 5 of the specification.
  
 
==General Solution==
 
==General Solution==
  
Should be a simple translation to EclipseLink Queries and Expressions
+
Should be a simple translation to EclipseLink Queries and Expressions but will be work intensive.
 +
Some methods and interfaces can not be completed until the equivalent functionality has been added to EclipseLink
 +
: - see [[EclipseLink/Development/JPA_2.0/entity_type_expressions | Entity Type Expressions]]
 +
: - see [[EclipseLink/Development/JPA_2.0/collection_parameters_for_in|Collection Parameters for IN]]
 +
: - see [[EclipseLink/Development/JPA_2.0/case_expressions|CASE Expressions]]
  
 
==Work Required==
 
==Work Required==
# unknown
+
# Develop model for testing
 +
#: approx 4 day
 +
# Update Processing
 +
#: approx 13 days - creating query definition implementation.
 +
 
 +
==Extensions==
 +
#QueryBuilder.rebuildFrom(Root)
 +
#: reformulates expression from new root.  Usefull for reusing expressions on new queries
 +
 
 +
==Restrictions==
 +
# Selection and Where must have at least one matching root to form query, otherwise illegal argument results

Latest revision as of 12:56, 14 July 2009

Query Definition API

JPA 2.0 Root | Enhancement Request

Issue Summary

JPA 2.0 specification has introduced a comprehensive object oriented query definition API which compliments JPQL.

This feature is covered in section 5 of the specification.

General Solution

Should be a simple translation to EclipseLink Queries and Expressions but will be work intensive. Some methods and interfaces can not be completed until the equivalent functionality has been added to EclipseLink

- see Entity Type Expressions
- see Collection Parameters for IN
- see CASE Expressions

Work Required

  1. Develop model for testing
    approx 4 day
  2. Update Processing
    approx 13 days - creating query definition implementation.

Extensions

  1. QueryBuilder.rebuildFrom(Root)
    reformulates expression from new root. Usefull for reusing expressions on new queries

Restrictions

  1. Selection and Where must have at least one matching root to form query, otherwise illegal argument results

Copyright © Eclipse Foundation, Inc. All Rights Reserved.