[
https://issues.jboss.org/browse/TEIIDDES-2925?page=com.atlassian.jira.plu...
]
Matej Kralik commented on TEIIDDES-2925:
----------------------------------------
ok, so when a user has the option to rename class name, the create materialized wizard
should create tables in the JDG source model and name it according to the class name.
However, when I set another name for class, tables in the JDG source model have set name
according to view table which is materialized. Because of that, I have reopened this
issue.
For example, I have view table which will be materialized. Its name is
'viewAllBooks'
# Right click on this table and choose Modeling > Materialized
# Change class name from 'viewAllBooks' to 'Book'
# Generated JDG tables have name : viewAllBooks AND ST_viewAllBooks1 (but should have Book
and ST_Book1)
I think that designer should do this when I create materialization or should show the
warning that a user has to change the name of JDG source tables according to the class
name.
But I see another problem. When I have already created JDG source tables and set
materialization, I have the option to generated POJO again (Right click to viewTable which
is materialized (viewAllBooks) and Modeling>Create POJO). But what I change the class
name again. How is use case ? Teiid designer should be rename JDG source tables which are
already set according to new class name or at least show warning that user has to rename
this tables?
Designer doesn't change java class name in the generated POJO
module
--------------------------------------------------------------------
Key: TEIIDDES-2925
URL:
https://issues.jboss.org/browse/TEIIDDES-2925
Project: Teiid Designer
Issue Type: Bug
Components: Build
Affects Versions: 10.0.2
Environment: Fedora 24
Reporter: Matej Kralik
Assignee: Barry LaFond
Fix For: 10.0.2
Attachments: screenshot1.png, screenshot2.png
I have a table (for example PersonMatView) and I want to create materialization. I set
'create POJO' and set java class name to Person (screenshot1). After that in the
generated JDG module is Person.jar but in the jar, the class has name same like the table
(Personmatview.class). (screenshot2). Is it required to have class name same as
materialized table?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)