Multiple relationship modeling

Hello,
I am hitting a bug/issues/misunderstanding on my side with data modeller 4.0.0.833 (I had this issue in the previous versions too).
I was trying to model multiple relationships from a entity to a detail entity and am hitting some problems. I have the following situation (simplified) :
Party Entity : Party ID (PID), Party Name
Transaction Entity : Trans ID (PID), cost (number)
I then create 2 1-to-many relationship from party to transaction:
Party -> Transaction (1 to many)
Party -> Transaction (1 to many)
This creates 2 FKs on the transaction entity called (Party ID and Party ID1). I rename this attributes in the transaction entity as "From Party" and "To Party"
I then do a engineer to relational model.
This then ignores the attribute names in the transaction entity I had given ("From party" and "to party") and creates 2 new columns - "Party_Party_ID" and "Party_Party_ID1".
Is there a way I can preserve the names I had given in the logical model for the FKs when engineered to Physical? Or is this a bug?
Secondly, Is it possible in the Relation properties dialog box (by double clicking the relationship lines in the logical model) in the target cardinality section to select the FKs I had created ("From Party" and "to Party") so that I could document correctly which is the "from" and which is the "to".
Thanks in advance.
AK

Hi AK,
you have 2 options:
1) clear "Apply name translation" check box in engineering dialog
2) use proper setting for naming template and names in your model (as Dimitar suggested) - naming templates are available in design properties dialog>"Settings>Naming standards">templates"
2.1 change naming template for "Column Foreign key" to {relationship}
2.2 Rename your relationships as "From Party" and "To Party"
3.1 Check "Apply name translation" check box in engineering dialog
Philip

Similar Messages

  • Assign multiple relationships at once

    Hi everyone...I am working in Primavera P6 Project Management Release: 7.0 Service Pack 3 (Build #: 00033036)
    When trying to assign multiple relationships at once, my computer will not allow me to capture multiple activities that have been assigned as either a predecessor or successor. I can highlight them, but when I click the assign button they all briefly flash as being captured then the assignment only shows the first activity in my complete schedule?
    I am able to log into a co-workers machine with my credentials and perform this task, but not on my machine. Do you have any suggestions?
    Thanks

    Hello,
    I assume this is all in the same project? It sounds like your project profile security settings could be different than your co-workers. I would see if there is a conflict between your settings from the admin perspective.
    Check these two lines in project security profile.
    Edit Project Activity
    Relationships
    Create, edit, and delete a project’s activity
    relationships.
    Add/Edit Project
    Activities Except
    Relationships
    Create and edit a project’s activity information, except
    activity relationships. To edit activity IDs, a user must
    also be granted the Edit Activity ID project privilege.

  • Best way to know correct forecast model - process chain set up with multiple forecast models

    Hi Experts,
    I need your help in selecting best forecast model for our company. We have some of the models already used for our company, and because of multiple models used it is taking very long time for process chain to finish. There is no existing documentation available on which model was used why initially. Please help me to make out forecasting process smooth.
    - What is the best way to know, which forecast model is correct and should be used for our forecasting process.
    - In case multiple forecasting models are really required to be used, please suggest ways to optimally schedule them in process chain.
    - At times we get messages like "not enough data available" for specific model - any way to avoid this.
    - How to optimally use parallel processing profiles forecasting process in process chain.
    - Things which should be avoided.
    Request your help, please share your experiences.
    Regards
    NB

    Hi Neelesh,
    There are many points you need to consider to redesign forecast process for your company/client.
    You need to select the best suited forecast model first depending on the business. This has to be well tested & agreed by business users. Complexity will be an outcome of this exercise with business users. Best id to give then a brief intro on all available models & then help them selection the best one as per their requirement.
    Auto selection models are generally more time taking & should be used only when you have no idea at all on the business/demand pattern.
    Run time will depend how you are clubbing the CVCs to get the forecast generated & also parallel processing. For parallel processing profile you will need to do trial & error testing along with help from Basis team on how many free dial up processes are available.
    Even you can run many forecast calculations in parallel if the product/cvcs are totally different. - As per my personal experience maximum run time reduction can be achieved here.
    Daily run is not advisable except only for businesses where you have too much dynamism in demand planning i.e. you expect the demands to be changed overnight. Most of the companies run forecast on monthly basis or at weekly basis at the max.
    "Not Enough data" will be a problem if you are having the irrelevant models used in forecast profiles. This means users are not bothered to maintain the needed data for he forecast calculations or they are not aware at all of the situation. Running such models on daily basis is not advised at all. Better users should use interactive forecasting & saving the results in such cases.
    Just to give a crude example we get forecast calculated on monthly basis for approximately 4 lac cvcs in less than 3 hrs using moving avg, seasonal linear regression, seasonal trend, croston models. We use parallel profiles also everywhere with 10 blocks & 500 cvc/block.
    Hope this helps. Let me know if you have nay more questions & also the results using any of this.
    Regards,
    Rahul

  • Single EAR multiple WAR model - faces-config not loading

    Hi
    I am deploying my application on weblogic 10.3 My application is in form of a Single-EAR-Multiple-WAR model. The application starts up correctly but when i bavigate from one module (WAR) to another (WAR), it doesnt initializes the managed beans. It is not able to load the faces-config from the second WAR.
    can anyone please let me know ehat am i missing?
    Thanks a lot
    -Ankur

    Hi,
    This is not an issue caused by having multiple wars inside same ear.
    This looks like a runtime exception when trying to render the jsp (The jsp is compiled to a sevlet and the inside the service method of the servlet you are getting this exception). Double check you jsp for the possible cause of this exception.
    Thanks,
    Gopinath Ramasamy

  • Multiple relationships between 2 tables in report model

    if i have 2 relationships between the same two tables. how do i use one over the other?
    for example, i have 2 tables order and ordeDate table , with the definition of:
    order table:
    orderid int,
    qty int,
    orderdate date)
    and orderDate table:
    (id int,
    endOfDay date,
    endOfMonth date)
    i created one relation ship as orderDate = endOfDay and anothe relationship as orderDate = endOfMonth. some of my reports would need to use the relationship between orderDate = endOfDay and the month end reports would need to use yhe relationship between
    orderDate = endOfMonth. How do I select one relationship over the other when building the report?
    Ideally the database should have been redesigned, which cannot be done at the moment as this will be done on the next project

    Your table design is completly wrong. I am now sure how you are maintaining OrderDate table. SQL Server is RDBMS. Without relation how will you pick those rows from Order table whose order date is equal exactly equal to datefield in OrderDate table. The
    only way is to derived endofDay and endofMonth in the select query directly. I understand endofMonth. But what is EndofDay ? And that too a date datatype ??
    You can run the below query but it will not return specific order date from order table,
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfDay,101) FROM ORDERDATE)
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfMonth,101) FROM ORDERDATE)
    Even if i JOIN the two table by orderdate and endofDay/endofMonth, we will not received specific orderDate. And this is becouse if your Order table contains multiple orderDate that are matching to either endofDay or endofMonth, the final output will contain
    multiple orderDate details. I don't think this is what you need. Therefore you need to modify the OrderDate table or provide us the definition for endofDay and endofMonth, and how are you maintaining.
    Regards, RSingh

  • Relationship Modeling - Jumpstart Guide

    Workshop Gurus -
    How would I model a One-Many or Many-Many relationship in Workshop? For example,
    in the JumpStart Guide -
    1. What is the simplest way for me to show the Customer Name with the Order, in
    the Order Admin Page Flow.
    2. How do I add a One-Many relation for Customer and Addresses (different addresses
    for shipping to multiple locations etc).
    Thanks
    Kunal Mittal

    Kunal,
    This newsgroup is for Workshop 7.0 issues, till WebLogic Platform 8.1 goes
    GA.
    Meanwhile, please post Workshop 8.1 beta issues on
    weblogic.developer.interest.81beta.workshop newsgroup.
    Regards,
    Anurag
    "Kunal Mittal" <[email protected]> wrote in message
    news:3eccf2a7$[email protected]..
    >
    Workshop Gurus -
    How would I model a One-Many or Many-Many relationship in Workshop? Forexample,
    in the JumpStart Guide -
    1. What is the simplest way for me to show the Customer Name with theOrder, in
    the Order Admin Page Flow.
    2. How do I add a One-Many relation for Customer and Addresses (differentaddresses
    for shipping to multiple locations etc).
    Thanks
    Kunal Mittal

  • One to one relationship modelling

    Hi all
    How to model a one to one relationship?
    i have a scenario where i had to maintain 2 different entities and cannot merge them into a single table coz they are separate entities
    Now while modelling them ... do we need to have a primary key for the second table (or)
    use the primary key of the first table as the foreign key on the second table with Unique constraint on it .
    Ex: a single subscription has a single criteria
    subscription table ........... and criteria table
    now should i iuse criteria id as a primary key of criteria table ? (or)
    subscription id as the foregin key in the criteria table ?
    or allow include both in the criteria table
    please suggest
    Thanks and Regards
    Raj

    hi dportas,
    first of all thanks for your respose...
    what is reciprocal foreign key?
    my scenario is like this
    i have a table called subscriptions which records all subscriptions that we have subscribed to to receive an alert to our email primary key is subscriptionid.
    every alert has an alert criteria with different set of attributes
    hence i have 5 alert criteria tables... each with totlally different type of attributes
    eg: balance criteria (balanceamount,condition) cutoff criteria(cutofftime,....)
    we can subscribe to only one alert in a single subscription
    hence subscription to balance criteria table is 1-1
    subscription to cutoff criteria table is 1-1
    now my question is that shoudl each of the criteria table should have criteriaid (or) should i put subscription id as the foregih key in each of the tables for relationship

  • Efficient Queries involving multiple relationship in JPA

    Hello,
    I'm using JPA with provider Hibernate.
    In order to get data from multiple tables (say 5 tables) I would use SQL JOIN and 'SELECT' only required columns. This would be the most efficient way and would scale well.
    In JPA how do I achieve this ?
    (It is not just 1-2 tables, but data has to be pulled from 10 related tables each having 15+ columns)
    Thank You.

    one object with 150 persistent attributes? sounds like a bad data model, a bad object model, or both. time to refactor.
    %

  • One position multiples relationships

    Hi Gurus,
      I have a scenario with my client..  There is a position (12345678) now this position is been occupied by 3 employees.. i have done that through percentage basis.. i hope i am correct till here.. now the client req is these three employees have to report to three different managers..
    can any please let me know how to give this kind of relationship when the position is same.
    Regards
    Swathi

    Hi Swari,
    You are right. Employees having same position will have same manager. Thats the reason you assign multiple employees to one position.
    You need to explain this to your client.
    If client wants employees to report to diffrent managers then you should create 3 diffrent positions reporting to 3 diffrent managers.
    This is SAP's best practice. If you implement in this way it will help in OM reporting and MSS implementations.
    If you deviate from SAP best practice your client will be in trouble in future.
    If you want to deviate from SAP best practice, you can create Custom "Z" relationships  between employee P and Manager's Position S and maintain 3 diffrent managers for all 3 employees on same position. This will have a big impact on OM and MSS and needs through investigation.
    Regards,
    Amit.

  • Unidirectional nullable one to ... relationship modeling

    Hi,
    I have 2 tables a and b. table b has a foreign key a_id, but I don't want table a has a column b_id. the a_id can be null. in data modeler, if I leave the target optional box unchecked, then everything is fine except the generated sql will have "not null" for a_id, which I have to manually remove. if I check that box, then the generated sql will have a b_id column in table a, which I don't want at least for now. Is this supported or did I miss something?
    Thanks.
    David

    Hi David,
    you should set "Dominant Role" in order to get unidirectional 1:1 relationships.
    Philip

  • JPA multiple relationships/associations between same entities

    I want to have a Person entity that has two bi-directional relationships to the Name entity: name and aliases.
    I have implemented it like so:
    @Entity(access = AccessType.FIELD)
    public class Person
         @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.EAGER,mappedBy="person_name")
         Name name;
         @OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER,mappedBy="person_aliases")
         private List<Name> aliases = new ArrayList<Name>();
    @Entity(access = AccessType.FIELD)
    public class Name
         @OneToOne
         private Person person_name;
         @ManyToOne
         private Person person_aliases;
         public Person getPerson() {
              return getPerson_name() != null ? getPerson_name() :
                   getPerson_aliases();
    }This seems to work, but I�m wondering if there�s a better way to do it. I don�t like the multiple Person properties in the Name entity.
    Thanks

    Your table design is completly wrong. I am now sure how you are maintaining OrderDate table. SQL Server is RDBMS. Without relation how will you pick those rows from Order table whose order date is equal exactly equal to datefield in OrderDate table. The
    only way is to derived endofDay and endofMonth in the select query directly. I understand endofMonth. But what is EndofDay ? And that too a date datatype ??
    You can run the below query but it will not return specific order date from order table,
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfDay,101) FROM ORDERDATE)
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfMonth,101) FROM ORDERDATE)
    Even if i JOIN the two table by orderdate and endofDay/endofMonth, we will not received specific orderDate. And this is becouse if your Order table contains multiple orderDate that are matching to either endofDay or endofMonth, the final output will contain
    multiple orderDate details. I don't think this is what you need. Therefore you need to modify the OrderDate table or provide us the definition for endofDay and endofMonth, and how are you maintaining.
    Regards, RSingh

  • Can I use the same recovery discs to restore Windows on multiple same model laptops?

    Sir me & my brother have HP dv6 pavilion 3210us same model with preinstalled win7 Home Premium unfortunately my brothers laptop HDD change in to dynamic we can't boot to original system restore.But i have recovery media dvd seperate for my laptop can i use it for my brothers laptop to recover please help me to find out the solution

    Since the laptops are the same model-yes, you can use your Recovery Discs on both.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How to use multiple Simulink Models on on Target and One Host VI?

    My ultimate goal is to run two Simulink models simultaneously from one Real Time Target PC from one LabVIEW VI. As I understand it, this is possible but I have not found a solution or example on how to do this. For debugging and demonstration purposes, I would also like to run the same setup on my windows machine. We have had SIT (and VeriStand) working with one Simulink Model for some time now.  I have tried using the SIT connection manager and coping the code, but I have not had success doing this. We are using LV 2009 and Matlab 2009. Any thoughts or inputs would be appreciated. Thanks for your help.

    Just dawned on me to try and open two instances of Matlab, then set the SIT server on the second instance of matlab to a different port. This worked as I got two different simulink models to run. The question is, is there a better more efficent way of doing this? Any thoughts would be welcome.

  • Multiple relationship for the same field

    Hello !
    I have this situation :
    Table : Article
    Id
    name
    category
    Table : Services
    id
    name
    nr
    value
    Table : Sell_item
    Id
    item_id
    quantity
    price
    value
    Now the problem is this : The field Item_id on the sell_item table can be the id for  an Article or a Service. So I need to create a double relationship for this field one with Article table an one with Service table.
    Is this possible ?
    If not , or if I'm wrong how can I solve this situation ?
    Thank you.

    Hello,
    Please try the following resource:
    http://stackoverflow.com/questions/10253986/sql-foreign-key-issue-with-2-parent-tables
    The resource offers you 3 options.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Creating a report having Multiple Data Models...

    Using BI publisher for Word 10.1.3.4
    I am attempting to create a template in MS Word with the report settings I have created in BI Publisher.
    I've created two data models, both referencing different tables that I will need on the report itself. The issue I have having is whenever I use the table wizard, the rowset is grayed out and only the default data model (sql query) can be used.
    I looked around and was unable to find a solution to this.

    I have done this and it worked.
    However I created an additional data model (I need 3 total) and only 2 of them are showing up.
    I tried logging in and out of BI Publisher, setting the main data model to the new one and then back to the concatenated data source and nothing seems to work.
    Whenever I got back into BI Publisher, I attempted to run the table wizard and got the following error:
    "The table wizard can't handle this data xml."
    Please advise.

Maybe you are looking for