How TopLink handles deletion of dependent objects

Hi,
If you load an object in one ClientSession, release this Session then serialize this object to Client, in Client remove one dependent object (1-M) from this object, then serialize this to server, on server acquire another ClientSession, acquire an UnitOfWork then register and deepMergeClone the object, the TopLink don't delete the dependent object from database but remove this from cache, what happen?

Are you sure it's mapped as a private relationship on the 1-M? Are you sure that when you remove the target from the collection that you are setting it's source to null? I.e:
In Invoice:
public removeInvoiceItem(InvoiceItem ii) {
getMyInvoiceItems().remove(ii);
ii.setInvoice(null);
When removing a 1-M, it's most important to set the backreference to null.
Are you certain that you are doing the remove on a serialized object and not on the cached object by accident?
- Don

Similar Messages

  • How to transport source system dependent objects

    Hi everybody,
    I've read several questions about how to transport source dependent objects between systems and I still don't get whole picture
    say I have BWDEV attached to R3DEV and
               BWQA attached to R3QA
    and I want to transport transfer rules from BWDEV to BWQA
    1) should I create, by hand, the source system R3QA in BWQA and replicate its datasources in the first place?
    2) or it has to be transported from BWDEV and "some how" converted in BWQA
    3) where does the source system name mapping has to be done: in BWDEV, BWQA or in both
    4) in order to do the mapping of names in BWQA I need to create the corresponding R3QA, otherwise I don't have the entry under TargSrceSy when executing tc RSLGMP
    I really apreciate an step by step process for the above scenario
    thanks a lot

    Hi Juan,
    Let me try to shed some light. Before you can transport dependent objects in the BW side, you have to make sure that the necessary dependencies in the R/3 side have already been transported. For example, if you have a datasource in R/3, you have to transport that from dev to QA first (before you transport anything in BW). Then, in the BW QA box you have to replicate the datasource before you can transport any BW objects in the BW QA. Then before transporting anything to BW QA and after replicating the datasource in the BW QA you have to go to RSA1->Tools Menu->Assignment of Source System to Source System ID menu item and make sure that R3DEV is mapped to R3QA. It is only after all the said checks have been done that you can transport objects in the BWQA.
    Here are my answers to your questions:
    Q1: This depends on your datasource. Some datasources can be transported. Some can be created in the QA box itself. But in both cases, you have to make sure that DataSource exists in R3QA and then replicate it in the BWQA.
    Q2: The conversion follows the setup in "Assignment of Source System to Source System ID" in RSA1.
    Q3: The "Assignment of Source System to Source System ID" in RSA1 has to be done in the BWQA.
    Q4: Yes, you have to setup the R3QA Source System in the BWQA.
    Hope this helps.

  • How can i delete an java object immediately?

    Is there any mechanism that delete an object immediately?
    I know I can delete an java object by GC mechanism, but it can not be effective immediately.
    is there any other solutions?
    thanks -:)

    And you did an internet search to try and find out how to delete Java from your computer? Well, this forum is for Java programmers, people who write programs using the Java language. Not for people who use those programs. But it was a good try.
    The easiest thing for you to do is just to leave Java on your computer. It won't do any harm (aside from taking up a bit of space on your disk) and if you go to a web site that contains an applet, it might even be useful. Maybe that's why you got the link in the first place.
    If you really want to get rid of it, then go into Control Panel and use Add and Remove Programs to do that. (It's called something else in Vista, I forget what, hope you didn't get stuck with that.) But I would still suggest leaving it on your computer.

  • Merging records - how to handle deleted records?

    hi,
    can anyone tell me what is the proper way to handle
    deleted records during records update ?
    let's say I have 2 customers and I merge them into one
    so I need to send to transactional systems that the deleted one
    should not longer be active - but how to achive that
    (sending deletion info) in MDM ?
    thank you for your help,
    Regards,
    michal

    Hi Michal,
    MDM does not delete any records when it merges them. whenever you merge any two records the local id is never lost, it is always present in the edit key mapping.
    You can see this info by right clicking on record and select edit key mapping. You will find both the record entries there.
    With proper mapping in syndicator, you can get this information for both the records. while mapping map the 'VALUE' field in the source items to the 'LOCAL ID' field in the destination item.
    Please let me know if this not help completely and if you have more doubts.
    - An

  • How to transport deletion of bw objects?

    I have transported an InfoCube to my test server.  However, now I wish to delete that InfoCube.  What is the proper way to delete a bw object in the QA environment?  Do I delete the bw object in the development server, then somehow attach the deletion to a request?  Or do I have to delete the object direclty in QA?
    Thanks,
    - B

    Hi Brendon,
    Once an object is transported, you need to delete it using a transport as well. When you delete your object in Dev, the system will prompt for a transport request. You can then import this in your QA (and prod) system. It is not advised to delete directly in Q, moreover the systems settings would prevent this in most companies.
    Hope this helps...

  • How can I delete remote shared objects?

    Hello world...
    I have a problem...
    I need to unload an external .swf file or delete all the remote shared objects that it conteins...but I need to reload the same .swf file by pushing a button...
    Please help me...
    Emiliano.

    Hi,
    can you please give clear idea...
    It looks like when the namespace was deleted delete all objects under this namespace was systematically deleted.
    means all objects under namespace is already deleted before deleting namespace..right?
    If so then Now there are existing interface objects somewhere out there in the IR. Objects such as data types, message type, message mapping and interface mapping objects
    Try to clear your cache..using SXI_CACHE...
    Try to  re-create namespace and delete all objects related to your namespace and delete namespace again...( Not sure this wull help..but u can try)
    Nilesh

  • How to handle the Date & Time Object?

    Hi,
    I have big problem.I am working on j2ee application(using jsp & servlets).I am using Jboss App Server. The server is placed in India.
    But there is two offices, one is in India ,another one is in USA.
    But i want to handle the date and timestamp object commonly,
    But this object should be able to calculate their own date & timestamp object( e.g.,India,USA ).How can i solve this issue?.
    Help appreciated!
    P.Saravanan

    Hi,
    I have big problem.I am working on j2ee application(using jsp & servlets).I am using Jboss App Server. The server is placed in India.
    But there is two offices, one is in India ,another one is in USA.
    But i want to handle the date and timestamp object commonly,
    But this object should be able to calculate their own date & timestamp object( e.g.,India,USA ).How can i solve this issue?.
    Help appreciated!
    P.Saravanan

  • How can I delete the existing objects and Relation ships in OM?

    Hi One and All,
    Hope all of you doin well,
    I want to delete the all existing objects in OM, like Org units, positions, jobs and etc... and also relationships.
    Please guide me.
    Thanks,
    Potru.

    all Objects are stored in table HRP1000 and relations in HRP1001, related to HRP1001 there are HRPADxx tables depending on the relationship.
    You will have to write your own program.
    If you have Clone&Test you could use /BKC/SOL21_PDPDEL to delete complete (sub-)structures.

  • How do I delete a Dependant Activity that was accidentally added to a Service Request?

    It does not let me "delete" the activity, any other I add I can delete. Also I tried to "Cancel" the Service Request, and it gave me an error, shown below.
    Any Suggestions? This is the second time I have had this issue, but before I was able to cancel the Service Request for the User. This specific Request has already been worked, and they are just trying to close it, and that is where they saw that the dependant
    activity was used instead of Manual Activity, and they can not close it.
    FYI, we do NOT have change management turned on yet, we are fairly new to SCSM.

    Was the activity already in-progress or pending? Once an activity has a status, it can no longer be deleted. This is based partly on ITIL principles as well as Service Manager's design. Once an activity "exists", it should only be pending, on hold,
    in progress, completed, or skipped (or canceled/failed when things go wrong).
    In my opinion, if you accidentally add an activity, you should simply set it to "Skip" and it won't interfere with your work item any longer.
    You're free to delete activities that have no status (indicated by the yellow "star" icon on the activity). Typically activity templates will not have a status so you can easily add/remove them from a work item template. However, once you submit
    a new activity to an existing work item, SCSM's workflow engine will set that activity's status which will prevent you from deleting it.
    So, basically, if you see the star icon, you can delete the activity..otherwise, just set it to skipped.
    If you want to get technical, you can use powershell or the SDK to really delete any activity, but there are pitfalls to watch out for. For example, if you delete an activity, make sure you adjust all the other activity's SequenceId values or the activities
    probably won't run through their lifecycle properly.
    As for the error you got when you tried to cancel it the first time, I'm not sure what caused that.

  • DTP Indicator Only Get Delta Once: How to handle deleted records in source

    Hi colleagues,
    I have checked some messages and blogs, but could not find any solution for deleted records in source system.
    My source system is not able to delivere delta for my table of interest. So I checked "Only Get Delta Once" in my DTP and made some tests.
    It works very well for changes of existing records of the source table.
    But, SAP help on this features wirtes:
    ...If this is not logically possible because, for example, data is deleted in the source without delivering reverse records, you can set this indicator and perform ...
    I checked this feature by selecting less data from source at the second load from the same table. But recordmode does not get an deletion flag for the now missing records. So, the indicator "Only Get Delta Once" does not work like BI standard delta mechanism?
    What is wrong?
    Thanks and regards,
    Wolfgang

    Hi,
    If you select the option 'Only get delta once', then every request in the PSA will only be loaded into the Data target once. For example. If you load a full request into the PSA through an InfoPackage and then load it to the Cube. In a snapshot scenario, when the new full load comes to the PSA you will need to delete the previous request from the cube before loading the new request.
    But if you delete the previous request from the cube, and not from the PSA - and if you haven't checked the 'Only get delta once' flag, when you execute the DTP, it will load both previous and the new requests from the PSA to the cube. In order to avoid this you have 2 options:
    1. You can delete a request from the PSA after every successful load into the Cube OR
    2. You can check the 'Only get delta once' flag in the DTP so that it won't load any request it has loaded into the cubes previously even if it was deleted from the cube.
    Using the second option de-couples the PSA maintenance from your regular data loading and also saves you an additional step of deleting the PSA request in your process chain.

  • How to handle the duplication of objects in two folders?

    Hi,
    In my case, there are two folders and all the elemnts in both are same. As and when we try to change the property one template in first folder ,it gets changed in second folder too in same template.
    And if i try to create a new element it gets copied to second folder?
    Can anyone suggest some solution?
    Edited by: VimalSharma on Oct 12, 2011 10:38 AM

    The problem has been resolved. There were two folders created in smartform , as i create a  new template it gets copied to second folder automatically.So what i did is i created two templates with same element and set of code and on CONDITION TAB i have changed the Only On Page property to the name of first folder and on other template second folder.
    So in this way both the pages will work for diffrent pages with diffrent properties.

  • Transaction to delete unnecessary BEX objects

    Hi all,
    we are working in the Development environment.
    in BEX Analyzer we have developed lot of test quieries and test objects.when i try to remove them in the analyzer it is not allowing me to do so.
    can anybody suggest me how can i delete those unnecessary objects .what is the transaction.
    regards
    sri

    Hi,
    RSZDELETE transaction to delete queries and workbooks
    Regards,
    San!

  • How can I delete Z.SAPB18.8_MyPO object from B1iSN 8.8

    Dear All,
    I have created only one object type (apart from the B1iSN default one)
    Ex: For the Purchase Order object (LocalObjectId = 22) I defined only one B1iSN object type.
    but I have the same error message "Sender SysId, Sender ObjectType or Sender payload is missing".
    suppose If by mistake I create two B1iSN object types for the same B1 object (same local object id)
    how can I delete one object from those two objects.
    Thanks and Regards,
    Anvar

    Hi Anvar,
    Z-objects always have priority against standard objects.
    =>  if you have more Z-objects for the same local object ID, it's always the latest created object
    If you created an Z-object, please make sure, that the BIUs can handle this object.
    All default integration scenarios need to be adjusted or copied to support the newly created z object.
    If you want to delete your newly created object, go to SAP B1iSN Tools -> Repository Tools -> Entities - Remove:
    Select your Entity Type (e.g. Object Type) and your Entity Instance (e.g. Z.SAPB18.8_MyPO) and press button Delete Entity.
    B1iSN gives you information, if there're constraints (e.g. Publication Object or object is used in an active integration scenario) and the object can't be deleted.
    Best regards
    Bastian

  • How to handle the call transaction in method of a custom business object

    Hello all,
    There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
    Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
                   once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
                   the portal.
                   If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come  back after call transaction statement in the method.
                 At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
    How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
    Please help it out........:)

    Hi swami,
    thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
    Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request.

  • How to handle the Exception in GP using executable callabel object.

    Hi all,
            I handled an exception in GP using Background callable Object. That is working fine.
    (Ex: Exception_No_User_Found). The Problem is I am not able to handle the exceptions for normal callable object. I have done the same thing as i did in background callable object except implementing IGPBackgroundCallableObject Class.  I have created an WebDynpro DC Project where in getDescription method i declared an Exception and in execute method of component controller I caught the exception if no user found.
    Then i created an callable object for this simple DC project. but that is not working i could not catch the exception. when i execute the process it is asking the User ID if i give the wrong userId it is not refreshing back to the user id input form.
    But if i test that simple callable object separately it is throwing an Exception when I give the wrong input..
    but the same thing is working fine using background callable object.
    I couldn't handle the exception for the simple callable object or executable callable object.
    Please If anyone bring me the solution that would be appreciated.
    Thanks in advance.
    Regards,
    Malar.

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

Maybe you are looking for