Inverses and 1-N relationships

It's common to see people complain that JDO doesn't automagically set
child-to-parent pointers for 1-N relationships with inverses. The answer
given, which I agree with, is that it is up to you to keep your data
model consistent, and that use of JDO should be transparent.
I was bitten by the reverse of that issue today -- I removed a child
object from the parent's collection, but didn't set the child's parent
reference to null. This had the odd (to me) effect of successfully
removing the child until I restarted my app server, whereupon it reappeared.
Is this expected behaviour? Could/should it be made a runtime error to
fail to set/clear inverse relationships consistently?
Tom

This is expected, and for exactly the same reasons.
Yes, we'd like to add improved validation in this situation. I've just
created a bug report for this -- monitor
http://bugzilla.solarmetric.com/show_bug.cgi?id=460 for details.
-Patrick
Tom Davies wrote:
It's common to see people complain that JDO doesn't automagically set
child-to-parent pointers for 1-N relationships with inverses. The answer
given, which I agree with, is that it is up to you to keep your data
model consistent, and that use of JDO should be transparent.
I was bitten by the reverse of that issue today -- I removed a child
object from the parent's collection, but didn't set the child's parent
reference to null. This had the odd (to me) effect of successfully
removing the child until I restarted my app server, whereupon it
reappeared.
Is this expected behaviour? Could/should it be made a runtime error to
fail to set/clear inverse relationships consistently?
Tom
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Fact and dimension table relationship?

    hi
    in se38 i executed this program sap_infocube_designs
    i got all cubes and percentage , this is directly fact and dimension table relationship based on this i need to take action is it line item dimension or high cardinality (dimen>20% fact line, dimen>10<20 fact is high cardinality.
    regards
    suneel.

    hi,
    line item has to be choosen in such a way to control the dim table size for the char that have almost large unique records.
    Line item dim table will not be shown by this program.
    Ramesh

  • Identifying and non-identifying relationships

    Hello, can some expert out there explain; what are identifying and non-identifying relationships in detail. An example will be much more helpful to understand the concepts. Thanks.

    I believe the different is:
    - identifying relationship means the child table has the parent table's primary key as part of its primary key;
    - non-identifying means that the child table has its own primary key and the parent's key is a separate column.
    Example:
    DEPT
    Deptno Number Primary Key
    Dname Varchar2(30)
    Identifying relationship with DEPT
    EMP
    Deptno Number Primary Key
    Seqno Number Primary Key
    Ename Varchar2(30)
    Non-identifying relationship with DEPT
    EMP
    Empno Number Primary Key
    Ename Varchar2(30)
    Deptno Number
    The advantage of non-identifying relationships we don't have to change the primary key when the employee moves from one department to another.
    Cheers, APC
    Cheers, APC

  • How do you view and edit Siri relationships

    SEt up relationship with Siri but find it does not work for me. How do you view and edit, delete relationships?

    Just say bla bla bla is my bla bla bla. Ex:
    Hey Siri, Judy Applewood is my Sister
    About Siri

  • Training and Event Management: Relationships

    Hi TEM Experts,
    What are the appropriate steps, or best practice, if the event we want to add is a one off, and wasn't really scheduled? Do we need to go through the entire PSV1, PV12, etc. process just to add a one off event so that it shows up on the employee training report? What if we only want to create the relationship between person and business event type, but what report to run to show it?
    Thanks in advance,
    Susan
    Edited by: Susan Wong on Oct 27, 2008 9:15 AM

    Hi,
    Relationships in TEM
    1. A025 is participated by Person (P) for the course (E) - P to E relation A025 (Participated by)
    2. Org unit - A025 (Taken part) for the course (E) - O to E relation A025 (Taken part)
    Tha above said are only sample relationship in TEM, pl check table T777E for further relationships.
    Pl let us know if you are not understood.
    Appriciate awarding points.
    Thanks,
    Nandagopal C
    Edited by: Nandagopal Chiranjeevi on Oct 29, 2008 12:56 PM

  • How to print out the Forms and Table fields relationship, data mapping?

    I create a forms and tables relationship inside the Form Developer 11g, once I created the Data relationships between the form data field and the Table column name. I don't have any command to print it out, such as Layout Wizard.
    Are there any programs on Windows platform can print it out?

    hi all,
    i have try to do this
    public static void Readbinary() throws Exception
              String file = "D:\\05-09.190501+0800";
              DataInputStream dis = new DataInputStream(new FileInputStream(file));
              //but then how to read the content ??????can you give me more hint ?????
    i have find the netflow v5 structure by C
    struct NFHeaderV5{
    uint16_t version; // flow-export version number
    uint16_t count; // number of flow entries
    uint32_t sysUptime;
    uint32_t unix_secs;
    uint32_t unix_nsecs;
    uint32_t flow_sequence; // sequence number
    uint8_t engine_type; // no VIP = 0, VIP2 = 1
    uint8_t engine_id; // VIP2 slot number
    uint16_t reserved; // reserved1,2
    struct NFV5{ 
    ipv4addr_t srcaddr; // source IP address
    ipv4addr_t dstaddr; // destination IP address
    ipv4addr_t nexthop; // next hop router's IP address
    uint16_t input; // input interface index
    uint16_t output; // output interface index
    uint32_t pkts; // packets sent in duration
    uint32_t bytes; // octets sent in duration
    uint32_t first; // SysUptime at start of flow
    uint32_t last; // and of last packet of flow
    uint16_t srcport; // TCP/UDP source port number or equivalent
    uint16_t dstport; // TCP/UDP destination port number or equivalent
    uint8_t pad;
    uint8_t tcp_flags; // bitwise OR of all TCP flags in flow; 0x10
    // for non-TCP flows
    uint8_t prot; // IP protocol, e.g., 6=TCP, 17=UDP, ...
    uint8_t tos; // IP Type-of-Service
    uint16_t src_as; // originating AS of source address
    uint16_t dst_as; // originating AS of destination address
    uint8_t src_mask; // source address prefix mask bits
    uint8_t dst_mask; // destination address prefix mask bits
    uint16_t reserved;
    but how to translate the structure to java,then get the data from the file ?
    Edited by: 903893 on Dec 21, 2011 10:52 PM

  • Mapping in OWB with primary key and foreign key relationship

    Hi all,
    I am new to this datawarehousing field. I have just started my career. I have to now create a mapping in owb where a table has a field which is a primary key of another table in the same staging area. If you guys could help me out with the a method it can be created that would be very helpful to me.
    I thought of 2 ideas,
    1. If I can use a look up, but then I am not sure if i can use a lookup for primary key, foreign key relationship. If I can use also, I do not know how to use that.
    2. What if I can directly take that the first table and link the primary key of that table to the second table which uses that primary key of the first table as one of its fields.
    I do not know how feasible these methods are. Please guys help me out.
    Thanks in advance.

    I have a similar case where table a and table b having relation but table a got inserted with data and table b is empty so there no values for foriegn key column in table b to realte with table a.
    Now i want to load table b foriegn key with primary key column values of table a.
    how can we do this in owb
    thanks
    kumar

  • Missing position and Org Unit relationship in PO13

    Hello SAP Pundits,
    I created a Position 1234 with transaction PPOM with Org Unit A and Job code X with start date 01/01/2009
    Now I hire an employee XYZ with this position X from start date 01/01/2009.
    When I go and see position X in PO13 it shows following relationships
    1)     Position 1234 - Org Unit A from 01/01/2009 to 31/12/9999
    2)     Position 1234 u2013 Job Code X from 01/01/2009 to 31/12/9999
    3)     Position 1234 u2013 Person XYZ from 01/01/2009 to 31/12/9999
    Perfect till now.
    Now if I change the Org Unit of the Position 1234 from A to B from date 01/04/2009 using PO13.
    A new record is created in IT0001 with start date 01/04/2009 and previous record is delimited.
    But now if I check the relationships in PO13 for position 1234 I donu2019t see the new record for Position 1234 and Org Unit B.
    However the previous relationship between position 1234 and Org Unit A is delimited till 31/03/2009.
    Why am I not able to see the assignment of Positon 1234 with new Org Unit B? Any reason why I am getting such an error?
    Thanks in advance.
    Regards,
    Ajay Hosur

    When you have changed the Position 1234 to org Unit  B from 01.04.2009 then the previous relationship will not show in po13, it goes into History which you can see in Complete Position Description..
    goto pp01 and select that position and create relationship with Org Unit B... am not sure why in Infotype 0001, previous record get delimited and new record got created..

  • Purchase Order Release Strategy and SAP user RelationShip

    Hi,
    We are currently developing a work flow to streamline PO release in our company . What we want to achieve is that
    E.g
    A purchase order 100001 is creates and a release strategy s1 is applied to it which is a 3 level relase statrgy having release code c1,c2,c3 which are uniquely assigned to user/employee of the company and no 2 users'employee can have the same release code.
    Now when c1 release the purchase order a work item should be created to for the user/employee who is assigned the c2 code.
    Currently this workflow is not implemented in our company adn the relase stategy is handeled by authorization oobjects and when ever a po user relase the po he calls up the other persona next in relase strategy to notify him about the work he has to do .
    I am need to know can we develop a relationship b/w the release code and sap user or employee
    Regards
    Kamran ellahi

    Hi,
    We are currently developing a work flow to streamline PO release in our company . What we want to achieve is that
    E.g
    A purchase order 100001 is creates and a release strategy s1 is applied to it which is a 3 level relase statrgy having release code c1,c2,c3 which are uniquely assigned to user/employee of the company and no 2 users'employee can have the same release code.
    Now when c1 release the purchase order a work item should be created to for the user/employee who is assigned the c2 code.
    Currently this workflow is not implemented in our company adn the relase stategy is handeled by authorization oobjects and when ever a po user relase the po he calls up the other persona next in relase strategy to notify him about the work he has to do .
    I am need to know can we develop a relationship b/w the release code and sap user or employee
    Regards
    Kamran ellahi

  • Question about File Content Conversion and parent-child relationships...

    Hello!
         I have read probably every blog, article and SAP Help document on the topic, but I am stuck on this one.  I am trying to convert a General Ledger flat file to an IDoc using the classic file --> IDoc scenario.  The setup is done and working, but the IDocs are formatted incorrectly and I believe at least part of the reason is how I am converting the file content. 
    The root of my problem is that the flat file has a parent-child relationship between the document header and the document item and I want to maintain that since the IDoc type (FIDCCP01) has the same structure in the BKPF and BSEG segments.
    Here is the flat (non-XML) file layout that is coming into the file adapter:
    FileHeader
    DocumentHeader
    DocumentItem
    DocumentHeader
    DocumentItem
    and so on (until the number of documents is complete
    I would really like the content to be converted so that the line items stay under their parent document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader>
       <ItemHeader>
       </ItemHeader>
    </DocumentHeader>
    <DocumentHeader>
       <ItemHeader>
      </ItemHeader>
    </DocumentHeader>
    But I keep getting this, where it lists the document headers first (one after another), and then all of the line items after the document headers like this:
    <FileHeader></FileHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <DocumentHeader></DocumentHeader>
    <ItemHeader></ItemHeader>
    Is is possible to maintain that parent-child relationship from the flat file and pass it over to the XML?
    Thanks,
    John

    Hi,
    Check some links on FCC.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

  • StoreFront : Payment and Shipping group relationships are missing for some orders

    Hi Team,
    In our application, we are able to see relationship between payment and shipping group for some orders. But we are not able to find these relationships for some orders.
    We are verifying in "dcspp_payship_rel" table. We are wondering why this behavior is happening for some orders.
    Could you please suggest to move further ?
    Regards,
    Babji...

    Hello.
    First of all you must ensure that you are properly using transactions when you create/update the orders.
    There are best practices to update the orders in ATG that must be followed to avoid loss of information.
    Like this steps below:
    Acquire a write lock using the ATG lock manager.
    Start the transaction.
    Synchronized on the Order object.
    Update the Order.
    End the synchronization.
    End the transaction.
    Release the lock.
    Here are some links that should help you understand the steps to be followed to make a correct update of an order:
    https://atgoasis.wordpress.com/2014/08/28/best-practices-for-updating-an-order-in-atg-commerce-applications/
    http://www.digitalsanctuary.com/tech-blog/java/atg/design-pattern-for-updating-an-atg-order.html
    http://sumangalavijay.blogspot.com.br/2011/10/atg-update-order.html
    Oracle ATG Web Commerce - Managing Transactions in Oracle ATG Web Commerce
    Hope it helps you! =)

  • Division and Profit Centre Relationship?

    Hi,
    Is anyone able to provide a definition of the objects DIVISION and PROFIT CENTRE and also what their relationship is with each other?
    Thanks,
    M.

    Division : A way of grouping materials, products, or services. The system uses divisions to determine the sales areas and the business areas for a material, product, or service.
    A product or service is always assigned to just one division. From the point of view of sales and distribution, the use of divisions lets you organize your sales structure around groups of similar products or product lines. This allows the people in a division who process orders and service customers to specialize within a manageable area of expertise.
    Profit Centre: An organizational unit in Accounting that reflects a management-oriented structure of the organization for the purpose of internal control.
    Operating results for profit centers can be analyzed using either the cost of sales approach or the period accounting approach.
    By analyzing the fixed capital as well, you can expand your profit centers for use as investment centers.

  • Difference between Oracle Customer Hub and Hyperion Data Relationship Manag

    Hi,
    I need integrate diferents data bases and eliminate information redundancy. I think Hyperion Data Relationship Management can help me to acomplish with the task. But i know there is another product named Oracle Customer Hub than can help me too.
    Does anybody know the difference between this tools?
    Which one its the more appropiate for me?
    Regards

    FCH was a product launched by Oracle to counter Hyperion Financial Management. However, it is not a proven tool. HFM has a very good market standing coupled with its other reporting capabilities. Also, HFM is a industry leader now.
    Financial Consolidation Hub will be removed from the Oracle E-Business Suite Component. FCH will not be included with Release 12.1. This is why, customers are advised to move to Hyperion Financial Management.
    An automatic migration utility from FCH to HFM has not been implemented. FCH customers who wish to implement Hyperion Financial Management will have to install the application and complete the implementation process manually.

  • What is meant by Selection, Hide,Inversion and Field only during Datasource

    Dear Mates,
    During Datasource Generation in LO extraction , I can see the tabs
    Slection
    Hidefield
    Inversion
    Fild only.
    Can any on please explain me elobarately each of them.
    Thanks,
    Sudha

    If you do a F1 on each you'll have a description, but here is a summary:
    Selection: You want to be able to select a value in this characteristic through the infopackage
    Hide: You don't want to be able to see this field.
    Inversion: For a key figure, change sign.  1 becomes -1 and vice versa.
    Field Only:  Field is available only for user exits and such but is not extracted.
    Hope this helps.

  • Import Substitute and Related Item relationship via Import Manager

    Hi! I have been able to import parent/child relationship (captured in an Excel spreadsheet) via the Import Manager. I have tested with BOM and Sales Packages and it worked fine.
    However, I now also want to be able to import relationship such as substitutes and related items and found out that this feature is not available in Import Manager. I cannot do this via matching in Data Manager as there is a similarity in the part number used. However, I guess it may be possible if I introduce a new field to somehow link them together.
    Has anyone tried to do a mass load of relationships like these before? If so, would appreciate if you can share your experience in this.
    Cheers!
    SF

    Have to import via Data Manager using a text file. It is important to note that there should be no blanks after the last header field and data line.

Maybe you are looking for

  • Iphone has a new battery and front camera flex cable. Wont turn on and Itunes gives me error 4014 when i try to restore

    So my iphone 5 was having very bad battery problems and apple said they charged $80 to which i was astonished by because my warrenty ended 2 weeks eailer. I thought maybe they would be generous and help me out but no so i took it upon myself to get a

  • Cube selection

    Hi All, 1. In cube selection screen, Is it possible to disappear SID 's ( Vendor (SID)/Material (SID) ? 2. I have a load contains 25 laks records, I can use both Doc numbers(P.key) or year wise. When I am using year wise it takes long time/Process ov

  • Bex Analyzer 3.5 error

    Hello, When I go to properties by clicking right button of mouse on data field, I'll receive error " Run-time error'13'. Can anybody help to resolve it? Vista, Office 2007. Regards, Romano

  • Wierd error any tips?

    hey guys am getting a error in my app which is wierd, it says E:\test>javac Example.java Example.java:126: cannot resolve symbol symbol : variable HeightField location: class Example heightString = HeightField.getText(); does unresolved symbol mean i

  • Reluctant to upgrade

    After reading about all the problems other users are having since upgrading to Mavericks, I am reluctant to upgrade. Presumably Apple are going to fix all these various bugs and problems? Does anyone have any idea how long a fix from Apple is going t