-
1. Re: How to define relationships for views
rareddy Mar 26, 2019 4:10 AM (in response to srivi)Srividya,
If the Views are not defined in the Teiid, then what is the purpose of your use case to use Teiid? Also, by saying you already created a model in the Teiid, you have the view definitions in Teiid. So, add the PK/FK relationships in Teiid model then that would suffice.
Ramesh..
-
2. Re: How to define relationships for views
srivi Mar 26, 2019 4:24 AM (in response to rareddy)Hi Ramesh
"If the Views are not defined in the Teiid, then what is the purpose of your use case to use Teiid? "
I have certain views created already in EDW (before we used JDV) with the union of several tables and some business logic in it. I don't want to redo that effort in JDV right now. So I created a data source model using JDBC connection pulling these views.
The problem I am facing is that in this JDBC data source model that I created in teiid I am unable to define PK/FK.
I selected the column and tried the properties pane but the window shows no fields. So like in Erwin or other tools I want to establish the relationship between these views that I pulled from EDW. Wanted some guidance here.
Regards
Srividhya
-
3. Re: How to define relationships for views
rareddy Mar 26, 2019 6:48 AM (in response to srivi)OK, thanks.
What you can do is create another Virtual model based on your EDW's source model which is one to one (if you are using the designer, when you create model you have an option to select a physical model and convert to view model). Once you have that model, you would be able to add in those PK/FK. There is no performance penalty for creating more view layers at runtime.
Ramesh..