[
https://issues.jboss.org/browse/TEIIDDES-2812?page=com.atlassian.jira.plu...
]
Barry LaFond edited comment on TEIIDDES-2812 at 8/16/16 3:37 PM:
-----------------------------------------------------------------
The current Designer provides a *Create Materialized Views* action which can take 1..*
selected views, create source tables for each view and set the mat. table reference on
each view... and save models
One perspective of this feature could allow single view materialization and provide the
user options to then create a POJO and another option to create a JDG module from it.
1) Create *Materialize* action that is enabled for a single selected view
2) Page 1 == Materialize Source Model Definition (see attached image)
3) Page 2 (OPTIONAL) == *Define Java and JDG Module Options*
* Add a checkbox around the page contents that says *Create POJO* from materialized
table
* If enabled, user can...
** User can just create POJO (requires a package name, class name and a project
location/folder for the *myPojo.java* file
** Could allow *empty* module name field (*.zip) OR could create a check box to enable
that field
was (Author: blafond):
The current Designer provides a *Create Materialized Views* action which can take 1..*
selected views, create source tables for each view and set the mat. table reference on
each view... and save models
For this feature...
1) Create *Materialize* action that is enabled for a single selected view
2) Page 1 == Materialize Source Model Definition (see attached image)
3) Page 2 (OPTIONAL) == *Define Java and JDG Module Options*
* Add a checkbox around the page contents that says *Create POJO* from materialized
table
* If enabled, user can...
** User can just create POJO (requires a package name, class name and a project
location/folder for the *myPojo.java* file
** Could allow *empty* module name field (*.zip) OR could create a check box to enable
that field
Add ability to reverse engineer into a Pojo object from a table or
view
-----------------------------------------------------------------------
Key: TEIIDDES-2812
URL:
https://issues.jboss.org/browse/TEIIDDES-2812
Project: Teiid Designer
Issue Type: Feature Request
Components: Modeling, Usability
Affects Versions: 9.0.6
Reporter: Van Halbert
Assignee: Barry LaFond
Priority: Blocker
Fix For: 10.0.2
Attachments: generate-jdg-pojo-and-module-action.png, jdg-pojo-page-1.png,
jdg-pojo-page-2.png
The scenario is: select table/view, right mouse click select Create Pojo, present
dialog, need a file chooser to select location to save output.
Label of action: Create Pojo (or something to indicates the process)
Dialog title: Create Pojo from Table [tableName]
Message: This will create a Pojo class, and packaged in a jar, that is meant to be used
when JDG will be used in materialization or accessed as a data source.
Options:
- file chooser option to select folder to save pojo jar
- drop-down: <select option>
Access JDG in Library Mode
Access JDG via Hot Rod Client
- pojo package name (default = org.teiid.pojo)
- pojo jar name (default = pojo.jar)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)