How to export ERD diagram to image in oracle data modeler/sql developer - entity

I'm on oracle sql developer 4.0.2.15. I used data modeller to generate Entity Relationship Diagram, how to save it as image? I need it to create documentation for my project.

File > Data Modeler > Print Diagram > To Image
Here's the Image File
And now available in newer versions, 17.x, the HTML/SVG
You can also generate HTML for your model's data dictionary AND include the diagrams as well. I talk more about that, here.

Related

Specify what diagram to display in a generated document

I am in the process of creating a document template that has its own sections for each diagram in a package. In my template, I want to only show a specific diagram in a section and display another diagram in a different section elsewhere in the generated document.
1.0 Some text
1.1 Diagram1
1.2 Some more text
...
1.4 Diagram2
...
2.5 Diagram3
The issue that I've been running into is that when I insert the fragment into Diagram1 section to call the image with Custom SQL it'll stick every diagram from the package in there rather than the one I need.
I am not sure if I can even display a specific diagram from a Custom SQL but it was the option that made sense to try.
For complex and more customisation you can try document scripts with Doc generator class.
DocumentDiagram method in DocumentGenerator class will help you inserting diagrams inside the RTF documentation.
More details on DocumentGenerator class
Refer these blogs to know more about generating complex documentation
Generate complex documents from Enterprise Architect with a two-step
semi-automated approach
Generating Documents using Document Scripts in Enterprise Architect

How to listen for "Example EMF Model Creation Wizards"?

I am developing a plugin for Eclipse Mars.2. I want to know if it is possible to create Example EMF Model Creation Wizards file programmatically and add data to the generated model file. Is it possible ?
EDIT
I have defined an ecore model that I use to create an Example EMF Model Creation Wizards file but I would like to do that automatically. My problem is that when I generate a file with all the correct data in it, I can't use it and navigate through the data. I have to copy the text data into a file created with the Eclipse wizard to make it work. This file is then interpreted by a Sirius diagram/table definition to create a graphical view.
Not sure what the question actually is, so taking it literally I say you can use the EMF APIs to create models programmatically. This has nothing to do with the wizards though.

Pentaho - PDI: get fields of stream

Pretty simple question here: If I read a .csv file for example, how can I know at runtime what columns that file has?
I want to convert that .csv file to JSON, but I don't know how could I set the fields for the JSON Output step dynamically, to include all the rows of that file. Can you help me expand my knowledge?
Thanks in advance
This is definitely a good use case for metadata injection. The step specifically is called ETL Metadata Injection. You'll need to get the fields dynamically probably using a scripting step (there's Java, JavaScript, and Python scripting steps available, as well as R if you're an Enterprise customer). I don't think that there is a built in step that will dynamically discover the fields at runtime.
Once you have fields, you can use the metadata injection step to inject the field names into CSV Input or Text File Input Step, as well as the JSON Output step.
Here is the official help documentation on the ETL Metadata Injection step: https://help.pentaho.com/Documentation/8.1/Products/Data_Integration/Transformation_Step_Reference/ETL_Metadata_Injection

Generating SQL from UML models?

How do I properly generate SQL from a UML data model?
Attempt with ArgoUML
I have tried using "ArgoUML"; and the custom version of ArgoUML called "DB_UML".
DB_UML generates SQL files with this content, for example; from: Books.xmi:
Generate source failure. Database factory class {0} cannot be found.
ArgoUML gives me no error, and additionally doesn't produce anything. Maybe you can give me a sample working schema file?
Attempt with Enterprise Architect
Generated okay, but the association class was not generated anywhere.
Happy to use any other software on any platform which supports Oracle; as long as I can get this UML->SQL functionality working.
GenMyModel http://www.genmymodel.com/ is now providing an online UML to SQL generator.

Visual studio 2010 database project and code generation

I'm trying to use the database project in VS2010, but my setup is a bit different from standard and I can't find an easy way to get it to work.
I have a "model" project which contains some xml model definitions of a simple information for an ETL process. As well as the schema for the supplied information, it contains other metadata, for example details of which columns need to be matched up with other tables, what to do in case of a non-match, etc, etc.
Using T4 templates, I then generate sql scripts, views and tables to manage the whole thing - one sql file per xml file. There are around 30 xml definitions, but the number of parameters is small and the pattern very repetitive, so it works well.
I want to dump these sql files into the database project, in order to get it to generate the deploy scripts and identify database changes for me. I can arrange for the files to be combined into one script. Is there a way to get VS to analyse the scripts automatically, or do I need to import them every time?
EDIT: I originally asked about getting VS not to split my scripts up into individual components. I found a solution to this: copy the existing script into the project, and - crucially - change the "build action" for the script to "build" (for some reason, default is "not in build"). VS will then add the item into the model and it will be part of the generated scripts - yay! However, still no way to reference scripts in other projects...
I've read the MS how-to for database projects, but didn't find anything in it that seemed relevant
Thanks for your help,
You can do this with T4 Toolbox. Here is how: http://www.olegsych.com/2010/03/t4-tutorial-integrating-generated-files-in-visual-studio-projects/. Specifically, you want to take advantage of the Template.Output.File and Template.Output.Project properties.
Oleg