Mysql Workbench Reverse Engineer function doesn't generate relationship "Lines" between tables - mysql-workbench

I just get a new project that need to work with a DB nobody knows about the structure about it. It is on the Mysql DB so I tried to use mySQL Workbench to export EER Diagram from this DB by using the Reverse Engineer function as many others recommended
I did get tables from the DB...but JUST tables!! no relationship that is the lines connect tables. Did I do something wrong or it is just because the ER Diagram from MySql Workbench is supposed to be like that?
Can anyone recommend tools that can export ER Diagram from existed DB? Include the relationship lines...

Relationships are only shown for foreign keys (how could MySQL Workbench otherwise know). If your tables have no foreign keys (e.g. because they are still using the MyIASM table engine instead of InnoDB) you won't get any relationships.

Related

PGAdmin create ERD from explicitly selected tables?

I have the ability to generate an ERD from an entire DB. My DB is huge and I want to focus on a subset of table relationships. Is this supported in PGAdmin? Additionally, if it isn't is there a free/open-source tool that does support this?

Tables in Data Modeler's Browser, not showing in Oracle Connection

I created an entity-relationship diagram (logical model) and engineered it to a relational model.
The tables were generated. Now I need to use them from the connection XE as you see in the picture.
The tables I made can only be seen on the data modeler design view in the "Browser", how do I get them on the connection "XE" to generate data dictionary, etc?
There are three possibilities:
you just need to expand the tables item in the tree to see your tables
You are looking in the wrong schema/user - go down to Other Users, and find the schema those tables belong to
The tables do not exist in the current database
If #3 is the issue, you would need to create them, possibly using the information in your Data Model - that is, you can generate the DDL/SQL scripts for those tables.
Then taking those scripts, run them while connected to the appropriate database/schema.
Disclaimer: I'm an Oracle employee and the product manager for these tools.

Eclipse JPA Tools generating duplicate fields in Generate Entities from Tables

JPA Tools -> Generate Entities from Tables... results in duplicate fields:
Predictably this results in this:
Not shown are all the duplicated getters and setters. Deleting them is a pain, even for a small class like this.
I cannot see any easy option to fix this. Does anyone have any ideas why it's happening? Thanks in advance.
This is true for mysql. I had three identical schemas with the same user table on mysql database instance. The entity created by the JPA Tools plugin had multiple fields with same name mapped to the multiple user tables in various schemas. Once I deleted all but one schema on the database, the tool retrieved correct list of fields that mapped to columns on the table
I had the same issue. I just renamed the other table in another schema. It seems that the Generate Entities from Table in Eclipse for a MySQL database looks for all tables with the same name no matter the schema.

Oracle Sql Developer DataModeler not showing ERD in relational model

I am using Oracle Sql Developer Datamodeler to view table relationships as an ERD.
I have selected tables from the schema that are related and have common keys. Still Oracle Sql Developer Datamodeler does not show how the tables are related. Why?
I am suspecting that there is no foreign key relation in your table design.
If you have your relationships correct and still not showing the relationships, please disconnect and connect back the db connections in SQL Developer. You will be able to see the relationships properly

Entity Framework vs 2010 Can I do the following:

I need to migrate data from many xmls to a sql server db and and it has to be done in a transactions.
I thought about EF and dbContext as it's a UOW in it's own right.
My question is
Can you do Database First at run time?
What I want to do is Read all tables from db store in class/dataset and map the db.column to equivalent in xml file and commit.
This has to work in such a way that if a table is added or column added it will work without any code changes as it is driven by db.
The problem I face is that with Db generated from model if a new column is required somebody later on "unfamiliar with EF" as to add the column "manual job".
I can do what I want with raw ado.net by reading db schema and mapping to a dataset but wondering if I could do it using EF.
Hope all clear
any suggestions
Yes you can.
You can use Entity Framework Power Tools which allows you to create Code-First file from Database of yours as you start like Code-First.
Or, you can use Database-first approach also. It's not that hard.
If you try to use database-first approach, please read my trial-and-error experience: post1, post2