on 12-10-2019 12:04 AM
I have a requirement where in I want to model as well as store the reference data in the model, so that when the DDL is executed the reference tables are populated with the data. For example, I want to store data like, Province code or policy status in the PDM itself. I have defined the table to hold such data. The question I have now is what is best option to enter and store the data in the data model. May be I am not looking at the right place and any pointer would be helpful.
You`re welcome. Explaining rules how to extend PD metamodel exceeds scope of this network, so if you`re interested in getting more knowledge and best practices for using full potential of PowerDesigner, you can find me on LinkedIn. Here`d be great if you just mark the answer that helped you most as correct answer:)
Ondra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I run a members-only Slack group for PowerDesigner users - www.mypowerdesigner.slack.com - if you want to join, send an email to concierge@powerdesigner.training. All I need is your name and email address.
Second option would be to create Extended Composition probably on Table level and then accordingly modify DDL generation templates in your DBMS file (or you could put it into separate Extension too). Each member of that Extended Composition will represent one record in that table. This will give you more freedom/possibilities in case Testa Data Profiles won`t be sufficient for you. For example if you need 5 different values for Column_1 and match them with 5 values in Column_2 in one exact way, Test Data Profiles won`t be enough. They just simply generate test data. They were not meant to populate enumeration tables, so they might not have all the functions necessary.
But I definitely agree with George, Test Data Profiles should be option No.1 to explore, since it requires no customization. In case Test Data won`t do the job, you can get back here.
Regards,
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the simplest method is to create Test Data profiles - each could hold the list of values for a clumn. Attach each profile to the relevant columns, then use "Generate Test Data" on the Datbase menu to generate the script to populate the tables; make sure you only generate the necessary number of rows.
It would also be possible to do this using a model generation in an extension or the DB definition file - it could generate the required SQL for specific tables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.