Data Modeler foreign key names

Hi,
I've been using Data modeller for a while now and it works beautifully, anyhow there is an issue I would appreciate if anybody can help me in.
For foreign keys, if the master table primary key is names ID, the foriegn key will be ID also, and if already there is an ID column column in the detail table, it will be ID1, ID2 ....
Can I change the naming method to be like the oracle designer, or any convention I would like ??
Thanks
AK

I'm using the Logical Model V 1.5.1Paul,
it's pre-production release. Data Modeler is free now and you can download current published release - it.s version 2.0.0.584.
There is "Attributes" page in relationship dialog (version 2.0) and you can see attributes generated by that relationship.
For foreign keys in relational model - there is "Associated columns" page, you also can see referred key there.
Naming templates for FK columns and attributes can be defined in version 2.0.0.584.
Philip

Similar Messages

  • SQL Developer Data Modeling: Foreign key checkbox

    Foreign key checkbox is disabled on all my attributes on every entities.
    I'm talking about logical model. How can I make an attribute that will be a foreign key?

    Hello,
    no chance for that. Foreign key attributes are created/removed automatically when attributes are added/removed to related primary key (identifier). We are criticized for having them at all.
    There is an option related to their names in Tools>General Options>Model>Logical.
    Best regards,
    Philip

  • How can I show Foreign Key name in the Data model Table window

    Hi,
    In one of my table, I had a Foreign Key, but that is not indexed. I want to display the name with in the table second window in realtional data model. If it is indexed, then it is showing in third window. How I can show without indexing that column?
    Thanks.

    I want to show Foreign Key name in the second window.
    Thank you for considering my question,
    Sundar

  • Changing foreign key name in physical model

    If I change foreign key name in physical model, it does not change in relational model. But when I change the name in relational model, the new name appears in physical model. This happens in Data Modeler 2 and 3EA2. Is it a bug or an intentional feature?

    it's not a bug - the name in physical model "follows" the name in relational model until name in physical model is changed. It keeps the same value and changes in relational model do not affect it. original behavior can be restored if you set the same name as it is in relational model.
    If I change foreign key name in physical model, it does not change in relational modelYou can look at physical model as specific implementation of relational model - changes do not go back in relational model.
    Philip

  • BC4J models foreign key associations as 1-to-1 instead of 1-to-many

    I've been using JDeveloper to generate a BC4J layer against a schema for several months as the schema has evolved. It has always modeled foreign key associations as 1-to-many, but now it is suddenly modeling foreign keys as 1-to-1, which is nonsense. A lot of other associations are also wrong.
    This happened to a schema that we've been using JDeveloper/BC4J on for months with no such problems as the schema has evolved. The database has changed slightly, but there was no change made to the particular constraints that are now modeled incorrectly.
    If I point JDeveloper to an older version of the same schema it generates the correct 1-to-many relationship. Something in the latest schema must be throwing JDeveloper/BC4J off.
    What do I have our data modelers look for in this case?
    Why would BC4J ever model a foreign key association as 1-to-1?

    I've been using JDeveloper to generate a BC4J layer against a schema for several months as the schema has evolved. It has always modeled foreign key associations as 1-to-many, but now it is suddenly modeling foreign keys as 1-to-1, which is nonsense. A lot of other associations are also wrong.
    This happened to a schema that we've been using JDeveloper/BC4J on for months with no such problems as the schema has evolved. The database has changed slightly, but there was no change made to the particular constraints that are now modeled incorrectly.
    If I point JDeveloper to an older version of the same schema it generates the correct 1-to-many relationship. Something in the latest schema must be throwing JDeveloper/BC4J off.
    What do I have our data modelers look for in this case?
    Why would BC4J ever model a foreign key association as 1-to-1?

  • SQl*Modeler - foreign key amendment error

    SQl*Modeler 2.0.0 Build 584 (Windows)
    Oracle 10.2.0.4 Solaris
    If I change an existing foreign key to simply change the delete rule (from say CASCADE to RESTRICT) it changes in memory just fine. If I generate the DDL the change has happened and I get the expected DDL.
    However, I then save the model, exit SQL*Modeler, start SQL*Modeler and check the foreign key the change has been lost.
    I can workaround this by changing the name of the foreign key and the change is saved correctly. Feature ?
    Ian

    Hi Ian,
    I logged bug for that.
    You can use foreign key dialog to do that change without need to change the name - just double-click on FK line or presentation in the browser.
    Philip

  • Data Modeler: FK attribute name synchronization

    I have this option enabled by default .
    How can i disable this on per table basis?
    thank you
    Andrew

    I don't understand, sorry.
    "FK attribute name synchronization" is an option in the tools->general options->model -> logical . Once set it enforces the name of the PK column to be used as a name of the column in FK. this works as expected. The problem that i have is when i have self-reference relation ( employee_id -> manager_id ) - in this case the column name is the name of the PK column and number "1".
    CREATE TABLE USER_STRATIFICATION_BIN
         user_stratification_bin_id NUMBER  NOT NULL ,
         node_id VARCHAR2 (256)  NOT NULL ,
         <skip>
         user_stratification_bin_id1 NUMBER ,
         user_stratification_display_id NUMBER  NOT NULL
        ) LOGGING
    ALTER TABLE USER_STRATIFICATION_BIN
        ADD CONSTRAINT USR_STRT_BIN_USR_STRT_BIN_FK FOREIGN KEY
         user_stratification_bin_id1
        REFERENCES RMBSWLOAN.USER_STRATIFICATION_BIN
         user_stratification_bin_id
        ON DELETE SET NULL
        NOT DEFERRABLE
    ;i need it to be smth else BUT "user_stratification_bin_id1".
    Please advise.
    Edited by: AndrewZ on Jan 26, 2010 9:17 AM

  • Traversing data along foreign keys?

    Hi,
    I am just wondering whether the following scenario is possible.
    I have three tables A, B and C, The relationship between them is:
    A ----> C ( many-to-one )
    B ----> C ( many-to-one )
    Now user updates the table C and I know I can capture what has changed by oracle triggers. Now I need to find the corresponding record in the parent table ( either A or B). Is it possible to somehow traverse the data along the foreign keys and when a record in table C is modified figure out whether the corresponding row and its columns/values belong in table A or table B.
    Could this be done and where should I refer for more information about this use case.
    Thanks

    Your scenario is not clear.
    You say A--->C (many to one, which I would understand as many A to one C) but then say that either A or B is the parent in which case an ER model would show an arc:
    C >--|------- A
    C >--|------- B
    ie C has foreign key columns A_ID and B_ID, and a check constraint to allow only A_ID or B_ID to be set, but not both.
    Back to the trigger question; while updating C of course you can read data from A and B; is that what you are trying to do, or are you trying to insert a parent A or B if required?
    Regards Nigel
    null

  • Data Modeler - Source/Target Name

    I have imported a logical model from Oracle Designer and need to show the "source/target" names. I could do this easily in version 2 of the Data Modeler through the Logical Model , "Show Source/Target Name" option of the Diagram pane (from Tools | General Options). The documentation for version 3 indicates that I should still be able to do the same thing (except Tools | Preferences), but I lack the "Show Source/Target Name" option in my version 3.0.0.665 of the Data Modeler. Is this a bug, or am I looking in the wrong place in this new version?

    Hi,
    Please see the Data Modeler Forum message option Show Source/Target Name “on” in the logic model for an answer to this question.
    David

  • How to fetch column data using foreign key in adf table ?

    I have created a adf table using a view that has a group id and user id column. I want to display the user name ( from user table) and group name from group table. I had created view links to the corresponding tables from the user_group view ( whose iterator is used to render the table).
    It sort of works. I dragged the user name from the embedded user iterator in user_group iterator. It does find the correct user name but if I have more than one row, it displays the user name of the last row user in all rows !
    Is there a solution to this problem ?

    Well, I saw in the view query for the association view ( for Many-Many) that the SQL already had the joins with the two ( master) tables to the association table. So I went ahead and added the descriptive columns to the select clause. Then the selected columns showed up in the attribute list by themselves ( without my intervention). So far so good.
    Then I recreated the adf table attribute by dragging these newly selected attribute to the page. I still see that the value of the attribute is the same in all the rows - this time it is the value for the FIRST row. It doesn't correspond to the foreign key for that particular row.
    IS THIS A BUG ? Has anyone else ever done this ?

  • 11g bi publisher data model generic columns names for obiee data source?

    I'm just trying to figure out if this is a bug, expected behavior or installation problem. When I select an Oracle BI Analysis to add to the data model diagram the column names are not copied over. Instead they are all renamed as Column0-ColumnNN.
    Thanks
    Edited by: user13087422 on Apr 7, 2011 9:49 AM

    I'm facing this same issue. Can you solve that? What's the problem with it?
    Regards,
    Ariel

  • Data Modeler EA1 - Changing name of subview in relational model

    This doesn't appear to work, if I click apply or OK it simply drops the properties dialogue and name of subview stays the same.

    it's fixed in EA2.
    Philip

  • Data Modeler - applying naming standards to relational model

    Hi,
    first of all thanks for the new data modeler build (584) - it really fixed some issues (e.g. unique keys with non mandatory referenced ids are now persistent) ...
    BUT ... why is there an option to disable foreign key names when applying naming rule although it does not work?
    I like my primary key names etc. to follow some naming rules, but I don't like foreign keys to follow rules, just because neither "Benutzer_Id3" follows the company internal naming rules nor is it very easy to understand at all.
    Steps taken:
    * logical model is complete
    * generate relational model
    * foreign key names are as intended (e.g. "User_Id_Modifier")
    * right click the relational model
    * click "Apply Naming Standards ..."
    * remove the check mark from "Column Foreign Key"
    * click "OK"
    The foreign key column is changed regardless of checkbox state :-( - even deselecting all check boxes still applies naming rules to the foreign key columns.
    Is there a fix/workaround for that or need I to go back to build 570?
    Thanks god I still have my 570 compatible model ins SVN
    regards stueckl

    Hi,
    unfortunately that functionality for all tables in relational model is broken - you still can use it at table level - "Naming rules" button in table dialog.
    Philip

  • SQL Developer Data Modeler - Relation to Foreign Key Generation

    SQL Developer Data Modeler 2.0.0 Build 584.
    I am having trouble with Relations to Foreign Keys when Forward Engineering a Relational Model from a Logical Model.
    First of all, the Naming Standard is not applied to the Foreign Keys when I perform the Engineer to Relational Model.
    So I right click on the Relational Model from the Browser and Apply Naming Standards to Keys and Constraints.
    I uncheck everything but Foreign Keys.
    Now, Foreign Keys are named according to my Naming Standards.
    However, this process also performs renames on the Column Foreign Keys even though I specifically unchecked that option.
    This appears to be a BUG in the software and I haven't found a way around it.
    I tried using {column} instead of {ref column} in the Naming Standard Template for Column Foreign Key, but that simply resulted in renaming my columns to "{column}".
    Please confirm and/or let me know of any work-around for this.
    Thanks,
    Dan

    Hi Philip,
    Thanks for the reply.
    Is this recorded as a bug to be addressed in the future?
    Should I submit this problem via Oracle Support?
    The other work-around I came up with is to override every Relation name in the Logical Model with the name I want to use in the Relational Model.
    When the Relational Model is Engineered, this becomes my Foreign Key name.
    Of course, this is not how I want to do things, so I am hoping for a bug fix someday.
    Regards,
    Dan

  • Renaming Foreign Keys in the Relational Model

    Hi,
    I'm new to Data Modeler, we are using v 3.0.0.66.5 and Oracle 11g, and I'm trying to build a Logical and Relational model for a new application.
    We always name our Primary Keys as ID, this is causing me a problem with my Foreign Keys names in the Relational Model, as they are showing as ID#. Is there a way to add the abbr. of the table to the Foreign Key?
    Thanks in Advance
    Sue

    I always do that job using Naming Standard Templates. This sequence renames ALL FK COLUMNS for ALL TABLES only in RELATIONAL MODEL:
    -Preferences > Data Modeler > Naming Standards > templates
    -into the box "Column Foreign Key"
    -Put something like that: {ref table}_{ref column}
    -Then, go into your modeler tree, select the relational model, right click and use "Apply Naming Standards to Keys and Constraints"
    -deselect all
    -select the last option "Column Foreign Key"
    -Go.
    What if the names still collide? What if you want to do the job for some--but-not-ALL tables? forget the method above. A transformation script will do that.
    You'll need some of these building blocks:
    - table.getFKAssociations()
    - keys.getRemoteTable().getAbbreviation()
    - column.setName()
    I'm novice to script coding, sorry I can't assemble a scripted solution right now.
    Edited by: T. on May 31, 2011 8:50 AM

Maybe you are looking for