Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360583 - No JPQL query validation when using undo/redo actions
Summary: No JPQL query validation when using undo/redo actions
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0.2   Edit
Assignee: Pascal Filion CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 15:38 EDT by Pascal Filion CLA
Modified: 2011-11-09 10:38 EST (History)
2 users (show)

See Also:
neil.hauge: review+


Attachments
Adds a call to validate the query after doing an undo/redo operation (1.25 KB, patch)
2011-10-11 15:49 EDT, Pascal Filion CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Filion CLA 2011-10-11 15:38:17 EDT
Steps to reproduce:
1a. Have a project with at least one JPA entity or
1b. create new JPA project and a new JPA entity
2. Have the JPA Details view opened
3. Have the focus in the Java source of the JPA entity on the class name
4. Under Queries in the JPA Details view, create a new Named Query
5. In the Query text area, type: "select e from <entityName> e where" where <entityName> is the name of the entity
6. Select the JPQL identifier where and hit DELETE
7. Do CTRL-Z for undo

Result:
Validation does not show an error under the JPQL identifier where.
Comment 1 Pascal Filion CLA 2011-10-11 15:49:01 EDT
Created attachment 204975 [details]
Adds a call to validate the query after doing an undo/redo operation
Comment 2 Pascal Filion CLA 2011-10-19 12:24:39 EDT
Checked into 3.0 maintenance and head
Comment 3 Jolene Moffitt CLA 2011-11-09 10:38:42 EST
Verified in Build M-3.3.2-20111107175211

Verified JPQL shows validation error(s) if you enter incorrect query. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.2