| Summary: | [Entity Gen] Add option to refresh DB metadata prior to entity generation | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Michael OBrien <michael.f.obrien> |
| Component: | JPA | Assignee: | Tran Le <tranle1> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge, shaun.smith, stefan.dimov |
| Version: | 1.0 | Keywords: | plan |
| Target Milestone: | 3.1 M1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://wiki.eclipse.org/Dali_3.1_M1 | ||
| Whiteboard: | EaseOfUse | ||
|
Description
Michael OBrien
We can look into whether or not it is possible to refresh the tables from outside the DTP UI. I assume it is. The other question is whether we want this (refresh) to remain a user driven action as it is now. It is probably OK to refresh when generating, since I'm not sure why the the user would want their DB view to be stale, especially when generating Entities. Didn't have time to get this into 2.0, deferring to next release. After discussing this with Shaun, we decided that this is more of an issue with DTP not updating the DB model when changes are made through their UI. This could be filed as a separate bug against the Data Tools project. As a workaround, we could add an "Update Tables Before Generating" (or something to that effect) option to the Entity Generation wizard, which would ensure that generated entities were never created with stale DB metadata. This would be a checkbox option, in the case that updating from the DB was a very time consuming activity, and the user knew that the tables were already up-to-date. Moving JPA specific bugs to new JPA component in bugzilla. We (SAP) have internal ticket about this. It's not quite the same, because the user requests refreshing of the content of the generate entities wizard (GenerateEntitiesFromSchemaWizard), but I guess the root is the same. I mean - if data source explorer refreshes (automatically or manually) then also the content of the wizard will be refreshed. Although, if the refreshing is manual, perhaps an additional refresh button should be added to the wizard as well as to the data source explorer. Given the current Entity Gen wizard, a button on the first page of the wizard probably makes the most sense. This button could be labeled, "Refresh Tables". Clicking this button would call for a refresh of the DTP model and would subsequently update the Tables list on the first page of the wizard. We will look at implementing this for the next release. Here is the location of a refresh icon from the platform that we should be able to use for this button. eclipse\plugins\org.eclipse.ui.browser_3.3.100.v20110426.jar\icons\elcl16\ Added the API in the JPT DB plugin to perform a "refresh". And also added a "Refresh Tables" button to the first page of the Entity Gen wizard. Implemented in 3.1M1 Verified in Build I-3.4.0-20110912100409 Verified refresh button was added to Generate Entities from Tables. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_M1 >Jolene, thank you for resolving this issue - appreciated
|