Data Modeler 2.1 EA1  FK Constraints

Hi,
I don't know what functionality you have planed but, when I drag and drop the Master + Detail Table at the same time to the modeler window I see visually my FK Constraints. When I drag it one after the other I dont.
Most of the time I'm working on existing models. I would need the Model-Viewer to drag one table to the modeler window and have the opportunity to import all dependend tables and see all the FKs. Otherwise I wouldn't work with it but still work with JDeveloper.
Regards,
Juergen

Hi Philip,
Yes I'm talking about the viewer in 2.1 EA1
To be honest, I like the way Apex is doing it in the Object Browser / Model. You click on any table and it shows the first level dependency around it, you click on the dependend table and you get the first level dependencies of this table and so on.
So first level dependencies would be enough but I would like to have the opportunity to import a single table and tell Data Modeler import all first level dependency tables, then I want to click to a imported table and say, import all first level dependencies of this table, and so on..., just like Apex.
So first level would be a deal... :)
Juergen

Similar Messages

  • Data Modeler 3.0 EA1: Import deferrable column constraints

    Importing from Data dictionary. Table has a deferrable initially deferred column constraints.
    create table didmn( m number check (mod(m,2)=1) deferrable initially deferred
                      , mn number constraint didmn_modmn_chk check (mod(mn,2)=1) deferrable initially deferred
                      , constraint didmn_mnn_chk check (mn/m=3) deferrable initially deferred
                      , check (mn>m) deferrable initially deferred
                    );Column level constraints are NOT DEFERRABLE in DDL Preview. Also after merge to a model they are in physical model not deferrable. As in my earlier foreign key thread Data Modeler 3.0 EA1: Import deferrable foreign key
    Table level constraints are imported deferrable.
    Edited by: Rafu on 19.10.2010 14:34

    Hi Rafu,
    EA2 is available and those DEFERRABLE problems are sorted out there.
    Philip

  • Object Types Attributes (Data Modeler 3.0 EA1.)

    Hi,
    Will the attribute object type support in data modeler be upgraded to the same functionality as column relational table support in 3.0? For relational columns I can attach a domain to a column, I can't attach a domain to an attribute in an object type. Also for a column I can define a 'Units', that is VARCHAR2 (30 BYTE) orVARCHAR2 (30 CHAR). If can't do this with the (Data Modeler 3.0 EA1.) for an object type's attribute. Will this be included?
    Thanks,
    Scott

    Sue,
    Thanks to you and your team for extending this to the object type (structured type) portion of SDDM 3.3 EA1 and 3.3 EA2. The object type portion of SDDM is pretty robust now for modeling and actually generating useable structures in the database (Oracle) now. With 3.3 EA2 at this point it will be much easier to take advantage of the object type features in the database and our applications. I have been waiting since Oracle version 8 for the tools team to provide a modeling tool that mirrors the functionality the server team has provided when it comes object types.
    Thanks for this in SDDM 3.3 EA1 and SDDM 3.3 EA2!
    ScottK

  • Sql Developer Data Modeler 3.0 EA1: Custom transformation script

    What is the object model used by:
    Tools -> Design Rules -> Transformations
    From looking at the examples (and guessing) I have managed to create ID attributes on all my entities, but how do I set its sequence number or set it as the primary key?
    entities = model.getEntitySet().toArray();
    for (var e = 0; e<entities.length; e++)
    entity = entities[e];
    att = entity.createAttribute();
    att.setName('ID');
    - Marc de Oliveira

    content of XML files:
    1) class described, parent class if there is one
    2)<property .../>
    describes property - set and get method, data type of property, default value
    3) <collection ... />
    describes collection of objects belonging to class - 5 collections are defined in Table.xml - columns, indexes, table check constraints, column groups and spatial definitions
    - get method - to get collection
    - create item method - method of described class used to create item for that collection; so for columns collection table.createColumn() will create column in table
    - other methods - add, move, remove if are defined
    4)other meta data
    definitions in 1) .. 4) are used by Oracle SQL Developer Data Modeler, so it'll be wrong to modify those xml files
    5)<roproperty ../>
    Data Modeler doesn't parse/process these definitions, we decided to not filter them out however you should not rely that much on them
    6)some junk left
    For each object you can set your own properties and they will be persisted (also included in compare/merge in versioning) together with other information for object - look at "template table" example in transformation scripts. Here are methods you can use:
    void setProperty(String key, String value);
         String getProperty(String key);
         boolean hasProperty(String key);
         boolean hasProperty(String key, String value);
         void removeProperty(String key);
         void clearProperties();
         Iterator getPropertyNames();
    Philip

  • Sql Developer Data Modeler 3.0 EA1: Auto route off

    I admire that the data modeler tries to automatically position relationships and data flows. I am sure it is very hard to automate and I don't think it works very well in this tool.
    So, I am happy that you have the option of turning "auto route" off as I am quite particular about how diagrams should look.
    In the EA1 it seems that even with "auto route" turned of, all connected relationships and dataflows are automatically repositioned as soon as an entity or process box is resized or moved - even the tiniest bit.
    I think the tool should not reposition relationships or dataflows as long as their current position can be maintained after the connected entity/process is resized or moved. When lines have to be moved the tool should try to maintain a position as close to its original position as possible.
    Let me know if there is a way to achieve this.
    Also, when relationships or dataflows have to be repositioned by the tool, I think they should be placed as far away from each other as possible (giving more room for labels). Currently, it seems that the default behavior is to lump relationships and dataflows close together when they connect the same entities or processes.
    / Marc de Oliveira

    it's the same in Data modeler v. 2.0No, in version 2.0 it is not the same. The line stays in place if you move the entity or process in the same direction as the line, eg a vertical line is not repositioned if you move a connected entity or process vertically. The same goes for horizontal lines.
    Also, when resizing the right side or the bottom side of an entity or process, lines connected to it are not repositioned (as long as the box does not become too small).
    You can get lines "more" fixed if you introduce intermediate point Intermediate point? I never heard of that. Where do I learn more about that? I could not find it in the help file.
    / Marc de Oliveira

  • SQL Developer - Data Modeler - Trigger for FK arc constraints

    In the preferences there is an option "Data Modeler > DDL > Create Triggers for FK arc constraints". I think Oracle recomments to use constraints instead of triggers where it is possible. Can anyone from the Development team tell me why here is just the option to create triggers and not also the option to create table level constraints for FK arc constraints? If it is possible I'd like to have this option. My suggetion is to use the following check constraint construction for creation: nvl2(FK_IDx,1,0)+nvl2(FK_IDy,1,0)+...+nvl2(FK_IDz,1,0)=1 or with not only single FK columns: nvl2(FK_IDx1,1,0)+nvl2(FK_IDx2,1,0)+nvl2(FK_IDy,2,0)+...+nvl2(FK_IDz,2,0)=2. Please tell me if that would be possible (and maybe available in next Version) or why it is better to user triggers instead.
    Thanks
    /c

    The Data Modeler forum is at:
    SQL Developer Data Modeler

  • SQL Data Modeler 3.0 EA1 trying to create primary key on OT

    Hi,
    I'm trying to modify a primary key of an object table that was reversed (imported) from an Oracle 11.2.x RDBMS and am getting the error message "Incomplete Index definition". It is showing in the window "Index Columns Assignment". I get to the 'Primary Key Properties' window by pressing the 'Properties' button on the 'Table Properties' -> 'Primary Key'. If I try to edit the expression and then press the Ok or Apply buttons I get the error. With this be fixed in the production version? Will we be able to create a model in SQL Developer Data Modeler that generates a SQL statement similar to the following:
    ALTER TABLE x_flags
    ADD (CONSTRAINT x_flags_pk PRIMARY KEY (flags.id))
    Thanks,
    Scott K

    Hi Scott,
    I'm trying to modify a primary key of an object table that was reversed (imported) from an Oracle 11.2.x RDBMS and am getting the error message "Incomplete Index definition"... With this be fixed in the production version?yes
    Will we be able to create a model in SQL Developer Data Modeler that generates a SQL statement similar to the following:
    ALTER TABLE x_flags
    ADD (CONSTRAINT x_flags_pk PRIMARY KEY (flags.id))I assume "flags" is column of object type and "id" is attribute of that type. I logged bug for that, so there will be support however not for 3.0.
    Philip

  • Sql Developer Data Modeler 3.0 EA1: Preference- Naming standard- Templates

    I am trying to figure out how the naming standard templates work.
    When I go to:
    Preference -> Naming standard -> Templates
    It says that 'Attribute Relation' is '{ref entity} {ref attribute}'
    What is the consequence of this?
    I thought, it would mean that when creating a primary key attribute (ID) on an entity (DEPARTMENT), the related "foreign key" attribute (that is automatically created in related detail entities, such as EMPLOYEES) would be named DEPARTMENT ID.
    Instead it is just called ID. Is that the intended behavior?
    - Marc de Oliveira
    Edited by: marc66 on 2010-10-29 05:59

    Marc,
    you should check "FK Attribute name synchronization" setting in "Preferences>Data Modeler>Model>Logical model" - probably it's checked and you cannot change the name of FK attribute.
    I found another bug here - FK attribute doesn't follow changes in referred entity - I logged it in bug database. As workaround you can apply defined templates at entity level (there is button in entity dialog) or for whole logical model (using pop-up menu in the browser).
    Philip

  • Generation of DDL similar to Oracle Designer (Data Modeler 3.0 EA1.)

    Hi,
    Will the production version of SQL Data Modeler allow the creation of separate DDL files similar to that which Oracle Designer does? For example, I can create a sequence number generator in Data Modeler (DM) and then make a call to that in an Object Type method. However the DDL file that is generated by DM has all DDL in one file. This would allow to take dependencies were taken into consideration, that is create the sequences before object types, packages and tables, then object type bodies, package bodies, etc...
    Thanks,
    ScottK

    At this stage we do not support multiple files. We do plan to do this in the future. However you can work around this by repeating the DDL generation for the different objects types you want to have files for.
    Remember that you can vote on the Exchange for your most desired features.
    Sue

  • SQL Data Modeler 3.0 EA1 (Data Modeler 3.0 EA1.)

    On the newest release of Data Modeler (3.0.0 Build 649), if I have a relational table with an object type structure, I still cannot pick one of the attributes in the structure to be part of a the primary key for the relational table. Oracle 11gR2 does allow this. Will this be added/included in 3.0?
    Edited by: user4179829 on Oct 11, 2010 12:25 PM

    Hi Scott,
    EA2 is available and the problem is fixed there.
    Philip

  • Data Modeler 3.0 EA1 - Logical= Attributes & Relational= Columns missing

    Hi,
    I imported Modeler 2.0 design into Modeler 3.0 EA1 and discovered that LOGICAL=>ATTRIBUTES and RELATIONAL=>COLUMNS options are no longer displayed.
    Were these options removed from this new version or is my installation broken?
    Thanks
    Chiedu

    Hi Chiedu,
    they are removed. Your version is ok - at least for that :).
    Philip

  • Data Modeler 3.0 EA1: Import deferrable foreign key

    Importing from Data dictionary. Table has a deferrable initially deferred foreign key constraint.
    Example:
    create table didf( id number constraint didf_pk primary key deferrable initially deferred
                    , didf_id constraint didf_didf_fk references didf deferrable initially deferred
                    );Only primary key constraint is imported as deferrable.
    didf_didf_fk is NOT DEFERRABLE in DDL Preview. Also after merge to a model the foreign key in physical model is not deferrable.

    bug logged
    Philip

  • Sql Developer Data Modeler 3.0 EA1: Process order/number

    When opening my version 2.0 model in version 3.0 EA1, the process numbers are as I originally saved them.
    After saving the model as a version 3.0 model (using "Save as..."), when I reopen that version all processes have been reordered on all levels of my model (about 300 processes).
    Actually, it looks like 1 becomes 4, 1.1 becomes 4.4, 1.1.1 becomes 4.4.4 etc...
    Strange behavior. Is there any way to avoid this?
    /Marc de Oliveira

    Hi Mark,
    thanks for feedback. I logged bug for that.
    Is there any way to avoid this?No for EA1 release.
    Philip

  • Sql Developer Data Modeler 3.0 EA1: Relationship source and target names

    When opening my version 2 model in version 3.0 EA1 the source name and target name of all my 231 relationships are deleted.
    Is there a solution for this? I don't want to reenter these 462 labels...
    Sincerely,
    Marc de Oliveira

    Hi Peter,
    When I examine an XML file for a relation converted from version 2.0, the XML elements "nameOnSource" and "nameOnTarget" are missing in the converted 3.0 EA1 versionthey are not loaded during "open" of older design. If you define them they will go into XML file.
    Philip

  • Sql Developer Data Modeler 3.0 EA1: Export - To reporting schema

    When launching Export -> To reporting schema the schema tables are created and messages show that data is being generated but after indicating that it "Exporting Diagrams" I get the following error message:
    "Error occurred while exporting to Reporting Schema. See the log file for details."
    and all the tables are left empty.
    The message log is not indicating that anything went wrong.
    What could be the problem?
    - Marc

    This is probably what you are looking for:
    2010-10-14 14:56:43,680 [Thread-11] ERROR ReportsHandler - Error Exporting to Reporting Schema:
    java.lang.NullPointerException
         at oracle.dbtools.crest.model.design.DesignPart.doSetMainViewVisible(Unknown Source)
         at oracle.dbtools.crest.model.design.DesignPart.setMainViewVisible(Unknown Source)
         at oracle.dbtools.crest.model.design.DesignPart.setMainViewVisible(Unknown Source)
         at oracle.dbtools.crest.exports.reports.RSDiagrams.ensureMainViewVisible(Unknown Source)
         at oracle.dbtools.crest.exports.reports.RSDiagrams.export(Unknown Source)
         at oracle.dbtools.crest.exports.reports.ReportsHandler.export(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$ExportToReportsSchema$1.run(Unknown Source)
    What does it mean?
    / Marc de Oliveira

Maybe you are looking for