1 - N Mapping with Delete of N

We are getting the n vector from the 1 object using indirection and attempting to remove one object from the vector.
Then, when performing a deepMergeClone on the 1 object, the appropriate delete statement is not being generated against the db???
Is this not the way it is supposed to work?

I have tried a simple test case in both 9.0.3 and 10.0.3 TopLink to try to reproduce what you are describing with no luck. The following code uses the employee domain example and uses indirection (ValueHolder) in both the 1:M and 1:1 back reference with PhoneNumber.
// Find Employee
     Employee employee = (Employee) session.readObject(Employee.class, exp);
// Create copy through serialization
Employee empCopy = copyEmployee(employee);
// Remove the first phone number from the copy
PhoneNumber phone = (PhoneNumber) empCopy.getPhoneNumbers().get(0);
empCopy.removePhoneNumber(phone);
UnitOfWork uow = session.acquireUnitOfWork();
uow.deepMergeClone(empCopy);
uow.commit();
One thing that came to mind as I was writing this. The removal of the PhoneNumber from the 1:M collection only results in a delete because the 1:M mapping is configured as privately owned.
If it was not privately-owned I would need to call uow.deleteObject(phone) as well.
Doug

Similar Messages

  • Runtime-Error after deploying a mapping with the generated script

    For example a very easy scenario:
    1. Create a table and a view in a DB-schema, witch ist registered as WB-target-schema with the following scripts:
    create view v1(c1) as select 'a' c1 from dual;
    create table t1(c1 varchar2(1));
    2. Import the table and the view into a OWB-module
    3. Create a mapping ‘m1’
    4. Drag and drop view and table into the mapping
    5. Draw an arrow from the view-column to the table-column
    6. Save and close the mapping
    7. Mark the mapping in the ‘Design Center’ and klick the ‘Generate’-Button
    8. Save the generated script ‘M1.pls’ to file
    9. Run the script in SQL*Plus, connected with the target-schema (without using the Control Center Manager)
    => very easy right now ;-)
    10. Start the mapping with the following script will produce the following error
    SQL> declare
    2 v_status varchar2(100);
    3 begin
    4 m1.main(v_status);
    5 end;
    6 /
    declare
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "OWB_OWN.WB_RT_MAPAUDIT_UTIL", line 1027
    ORA-06512: at "SCOTT.M1", line 2048
    ORA-06512: at line 4
    If i delete or comment the four WB_RT_MAPAUDIT_UTIL-calls - it work´s fine!
    But is this a good advise?
    What exactly does the wrapped package ‘WB_RT_MAPAUDIT_UTIL do?
    Thanks
    jwehner

    I just ran into the same problem myself. I used the same technique of saving the generated OWB script to file and then compiling it through sqlplus. When I used the "Deploy" option for the mapping, then the problem went away. So when OWB is deploying the code it seems to be setting something internally that doesn't get set when you simple compile the PL/SQL. I don't know of any workaround to this. I will need it eventually, since I don't want to use the UI to deploy to various test environments and production. Maybe the built-in scripting language is the way to go.

  • API040 Mapping with name table1 already exists

    Hi,
    In a OWB 10.2.0.1 I did a "create and bind" and got a message "API0408: Mapping with name table_1 already exists", even though it does not. I deleted the mapping and started over again and go the same message. I veified the table does not exist.
    Any help is appreciated!

    You did create and bind on table in mapping and got this message.
    All I get is API0408: Table object with name table1 already exists. witch makes sense if table exists, but you got message that mapping already exists.
    Can you try this again with another table name, and please check if you are looking for the table that you get error for, in the right scheme.
    thanks

  • Can't drive mapping with jre1.4.2_11

    I need to drive mapping with jre1.4.2_11 in Windows applications but I can't.
    If you change the file java.policy with all permission then the drive mapping works properly. But if you want to add permission only for the drive mapping?? Anyone knows about it??

    First, you are not addressing Apple here. This is a user to user technical support forum. If you want to let Apple know something, you use this feedback link. [www.apple.com/feedback/iphone.html]
    As far as the voicemail, it had to be setup the first time, maybe they took care of it for you at the carrier. I'm not sure where you are, however if you are on AT&T, they will reset your password for you, you can log in with that, and then reset the password to something that you would remember easily. The voicemail password doesn't always get deleted when updating, but sometimes it does. It didn't for my update, but it did for my son's.
    Message was edited by: ChrisJ4203

  • Export catalog with deleted items

    Hi,
    I would like to export catalog with deleted items on contracts.
    I am actually using the class : /CCM/CL_CATALOG_EXPORT
    But i don't have in result items deleted in contracts.
    Can you help me?
    Mathieu

    Thank Atul for your answer.
    >Which CCM version are you using ?
    Version 2.0 ( CCM     200_640     0004     SAPK-26404INCCM     CCM 200_640 : Add-On Delta Upgrade)
    I read these notes, it is yet implemented.
    I read the forum too and I am actually using the class /CCM/CL_CATALOG_EXPORT.
    I made some changes :
    <u>Method GET_EXPORT</u>
    CALL METHOD gr_catalog_manager->get_catalog_data
            EXPORTING
              is_req_data     = ls_req_catalog
              iv_with_deleted = ABAP_TRUE
            RECEIVING
              result          = ls_catalog_header.
    In GET_CATALOG_DATA
    *     read the header data
          result-component = gr_catalog_header_manager->get_header( iv_guid     = gs_curr_catalog-guid
                                                                    is_req_data = is_req_data-component
                                                                    is_locale   = is_locale ).
    Parameter iv_with_deleted is not used !!  Do you know why?
    As well, I changed inside method <i>DO_CONTENT_ITEMVAL</i> two calls method :
    (<i>get_all_items, get_item_data</i>) with parameter <i>iv_with_deleted</i> = true.
    With these changes I have the deleted items from the procurment catalog in my export.
    But if I delete an item in my contract following a generation of my contract catalog and my procurment catalog. This deleted item doesn't appear in my CC et PC. At the end, I don't have this item deleted in my export.
    Maybe it is an mapping error, and I should map this deleted item to my procurment catalog... (It was in place before I came in this project, and I don't really know how it is done actually)
    Or there is a solution to export deleted item in the contrat when I am exporting the PC.
    Do you have an idea?
    Regards and sorry for my english
    Mathieu

  • FDMEE/LCM : LCM is merging target server maps with source server maps

    Hi,
    We would like to copy thanks to LCM our FDMEE application from production to developpement server.
    We have done several tests on developpement that we would like to remove.
    We need to have production/development environnement AS-IS.
    The problem is that LCM is merging taret server location / data load rule / import format / maps with the source one.
    We have opened an SR on this subject.
    Meanwhile we would like to create a SQL request to clean import format / data load rule / location / maps table within target server before the LCM import.
    Is that ok if we delete all records on these following table or could we have an impact ?
    - AIF_BALANCE_RULES (Data load rule table)
    - TDATAMAP / TDATAMAP_STG /TDATAMAPSEG (maps tables)
    - TPOVPARTITION (location table)
    - TBHVIMPGROUP; TBHVIMPITEMFILE (import format table)
    What do you think ?
    Thanks.
    Regards,
    Yohan

    That's a comment in the file. It has no effect at all.

  • HT204266 My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

    My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

    My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.

  • Issue in Color Theme on the map with ADF geographic components

    I am facing an issue in bringing up a map using color theme .I can able to bring up a map with color themes using geographic components feature in ADF.
    The problem here is 'Edit Color Map Theme' dialog which lists Map Theme in five categories like continents,counties,countries,states_abbrev,states_names.
    we had implemented map using Color Theme based on the states_abbrev and found it was working properly.
    But after some days we found that the settings we made to work for the map no longer works and resulted in no color theme on the map being displayed on the page.
    It was found that the states_names works properly instead of states_abbrev by that time.
    But again after some days it didnt work with state_names and we revert back our code to follow state_abbrev so as to get the desired result.
    Does somebody know where is the problem and how to approach this issue?

    Quick Install is gone.
    Database repair doesn't work.
    Color coded categories is gone, and as you've discovered Theme colors are gone.
    Print to Excel is gone.
    Many desktop clients that worked with 4.2 do not work.
    It won't work with legacy devces.
    and others.... There are lots of complaints about 6.2 scattered around the forums.  Personally, the HotSync manager keeps forgetting the connections I've set, and goes to default views.
    You aren't missing much of anything, IMHO.
    WyreNut
    Post relates to: Centro (AT&T)
    Message Edited by WyreNut on 02-20-2009 12:18 PM
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Hi Friends... I'm trying to delete a back-up file on mu TC but I get the message "The operation could not be completed because the item "bands" is in use. I'd like to start the Back from scratch, could help me out with deleting the current file?

    Hi Friends...
    I’m trying to delete a back-up file on mu TC but I get the message “The operation could not be completed because the item “bands” is in use. I’d like to start the Back from scratch, could help me out with deleting the current file?

    Sorry, I am very confused. I asked the following question....
    Is this the only backup file on your Mac, or do you have other backup files and data on the Time Capsule disk?
    The answer that you gave was....
    This is the only one
    Now you are saying that....
    But I have lots of other files on Time Capsule! The back up file is only one of them.
    Can you clarify, please?

  • Report for update of Material with deletion Flag from R/3 to SRM

    Hi All,
               Is any report for Updating material in SRM with deletion indicator for those  deletion flag set in R/3...

    Check material status
      IF mat_mmsta EQ '--'.
        lv_msgv1 = iv_ordered_prod.
        CALL FUNCTION 'BBP_PD_MSG_ADD'
          EXPORTING
            i_msgty       = c_msgty_e
            i_msgid       = 'BBP_PD'
            i_msgno       = 426
            i_msgv1       = lv_msgv1
          EXCEPTIONS
            log_not_found = 1
            OTHERS        = 2.
        IF sy-subrc <> 0.
          PERFORM abort.
        ENDIF.
        IF c_on = c_off.
          MESSAGE e426(bbp_pd) WITH lv_msgv1.
        ENDIF.
      ENDIF.
      if not mat_lvorm is initial.
        lv_msgv1 = iv_ordered_prod.
        call function 'BBP_PD_MSG_ADD'
    program name LBBP_PDIGPF2R
    Check material in backend
      CALL FUNCTION 'META_MATERIAL_READ'
        EXPORTING
          i_mtcom        = ls_mtcom_eci
          logical_system = iv_log_system
        IMPORTING
          e_mmsta        = mat_mmsta
          e_lvorm        = mat_lvorm
        EXCEPTIONS
          mat_not_found  = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        lv_msgv1 = iv_ordered_prod.
        lv_msgv2 = iv_plant.
        CALL FUNCTION 'BBP_PD_MSG_ADD'
          EXPORTING
            i_msgty       = c_msgty_e
            i_msgid       = 'BBP_PD'
            i_msgno       = 275
            i_msgv1       = lv_msgv1
            i_msgv2       = lv_msgv2
          EXCEPTIONS
            log_not_found = 1
            OTHERS        = 2.
        IF sy-subrc <> 0.
          PERFORM abort.
        ENDIF.
        IF c_on = c_off.
          MESSAGE e275(bbp_pd) WITH lv_msgv1 lv_msgv2.
        ENDIF.
      ENDIF.
          EXPORTING
            i_msgty       = c_msgty_e
            i_msgid       = 'BBP_PD'
            i_msgno       = 345
          EXCEPTIONS
            log_not_found = 1
            others        = 2.
        if sy-subrc <> 0.
          perform abort.
        endif.
        if c_on = c_off.
    IN SRM PROGRAM LBBP_PDIGPF2R BBP_PD 345 throws message "product x is designed for deletion"
    but it is validationg from fm 'META_MATERIAL_READ'
    please close this thread
    br
    muthu

  • Database, Dataset, Table Adaptors Error "Unable to load, Update requires a valid DeleteCommand when passed DataRow collection with deleted row"

    Microsoft Visual Basic 2010 Express.
    I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
    when passed DataRow collection with deleted rows". 
    I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
    the previous uploads and all the rows that i wanted to delete are still there.
    My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller.  IF the customer
    needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.  
    Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    CODE:
    Private Function LoadOffSetData()
            Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
            LoadOffsetDialog.DefaultExt = "csv"
            LoadOffsetDialog.Filter = "csv|*.csv"
            LoadOffsetDialog.Title = "Load Offset Data"
            LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
            If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then  'show the dialog and if the result is ok then
                Try
                    Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
                    If (myStream IsNot Nothing) Then 'if the file is valid
                        For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
                            oldRow.Delete()                       
    'delete all of the existing rows
                        Next
                        'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        Dim rowvalue As String
                        Dim cellvalue(25) As String
                        'Reading CSV file content
                        While myStream.Peek() <> -1
                            Dim NRow As MaterionOffsetDataSet.OffsetTableRow
                            rowvalue = myStream.ReadLine()
                            cellvalue = rowvalue.Split(","c) 'check what is ur separator
                            NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
                            Me.OffsetTableTableAdapter.Update(NRow)
                        End While
                        Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue          'saves all the table offsets
    to the offset numericUpDown registers in the main window
                        StationOffset01.Value = OffsetTableTableAdapter.Station01Value
                        StationOffset02.Value = OffsetTableTableAdapter.Station02Value
                       myStream.Close() 'close the stream
                        Return True
                    Else 'if we were not able to open the file then
                        MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
                        Return False
                    End If
                Catch ex As Exception
                    MsgBox("Unable to load, " + ex.Message)
                    Return False
                End Try
            Else
                Return False
            End If
        End Function

    Hello SaulMTZ,
    >>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    This error usually shows that you do not initialize the
    DeleteCommand object, you could check this
    article to see if you get a workaround.
    >> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
    http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
    which seems to be easier (in my opinion).
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My Ipod was originally set up as a sub-account of a firends.  After that, I got an Iphone and set up my own Apple account.  I just got a new Ipod, and now can't sync my old Itunes to it. Can anyone help me? I'm even OK with deleting the old Itunes account

    My Ipod was originally set up as a sub-account of a firends.  After that, I got an Iphone and set up my own Apple account.  I just got a new Ipod, and now can't sync my old Itunes to it. Can anyone help me? I'm even OK with deleting the old Itunes account, and staring over.  I just really want to get the new Ipod under my own account, and be able to use it...

    There is no such thing as a "sub-account."  Also, you probably mean iTunes library, when you say "account."  Your "account" in iTunes is your Apple ID, which is what you use to sign in to the iTunes Store to make purchases.  iPods are associated with an iTunes library, not with an Apple ID (iTunes Store account).  You'll need to clarify...
    So, this is what I think you are saying.  You previously shared an iTunes library on a computer with your friend.  Your old iPod was synced to that iTunes library. 
    You got an iPhone, and at that time, you set up your own iTunes library.  Is that on a different computer?  How does the iPhone affect your question about the iPod?
    You got a new iPod.  What is your "old iTunes"?  Is that the iTunes library you shared with your friend?

  • How do i view photos in macbook pro, and while viewing how can i delete the unwanted photos with delete button?

    1 My questions are about viewing and managing photos from a folder.
    a. How do i view photos in macbook pro - i know the space bar thingy but does not help my purpose?
    b. While viewing how can i delete the unwanted photos with delete button?
    c. How can i increase the size of the photos that i am seeing in the form of icons?

    double clicking in iPhoto will open the photo.
    The left and right arrow key will move between photos, as well as swiping on a trackpad or Apple mouse.
    See >System Preference>Trackpad or mouse  for options and tut
    While selected or in the smaller icon view hitting the Delete key will delete the pic.
    Command Z will undo the last action taken.
    Periodically you have to empty the iPhoto trash.  iPhoto drop down menu>empty trash
    Same applies for viewing pics in a Folder NOT in iphoto,  Use the up and down arrows does not work in Preview, but as you know in QuickLook (spacebar) the up and down arrows will navigate.

  • How to add a bing map with pins to a Siena Project

    Hi
    I just want to add a bing map with the current location and a few nice pins of some nice locations around me. Comming out of a Excel file. Potentially also draw some routing lines into the bing maps.
    Any ideas how I can accomplish that goal?
    Thank you in advance
    wbr.
    Joerg 

    yes you can (there is actaully one on the map, blue square)
    The syntax is listed on
    http://msdn.microsoft.com/en-us/library/ff701724.aspx
    You will however have to build the correct string to included in the image source (which you can do in the source excel or in runtime in siena)
    Concatenate is suitable to do that.
    http://dev.virtualearth.net/REST/v1/Imagery/Map/Road?pp=47.638197,-122.131378;;1&ms=350,500&key=KEYHERE
    the PP indicates the pin actually and the bing map autocenters on that. You have several options listed on the webpage listed above. It's a question of the one fitting you best.
    Please note that your bing key is yours so you need to hide it well enough.
    Regards
    StonyArc

  • Can i use WebApps to build a Google map with polygon territories instead of points (pins)?

    I built a map with Google Maps Engine Pro - http://www.jmbcompanies.com/Services/Mitigation/map.
    It showcases territories using a Google map polygon shape.  I wrote custom KML to create it.  However, with Google Maps Engine pro you cannot create custom hyperlinks.  It will link a URL that you put in the data, but you cannot name it or target the parent window, so therefore it opens a new tab for each click to more details.  I really want it to open the WebApp detail page for that item within the same window.
    So, is there a way to use the BC integrated Google maps technology and show polygons instead of points on the map? I've used {module_webappsmap,20754,a} to place individual locations on a map, but what about territories or polygon areas?
    I'm sure that I can create a WebApp to generate the KML for each placeholder.  But how do I turn that into a map?
    THANKS!!

    You can not create a kml file in BC through webapps. Modules do not work in other file types and you do not have server code access to generate a file type of results.
    You need to use the google API and do this yourself or you can just use this:
    And embed it into a custom field. My Maps

Maybe you are looking for

  • SAP GUI 710 installation with BW 3.5 addon - BW Browser has disappeared

    Dear all, I hope someone can help with a BW 3.50 add-on problem following SAP GUI patching. I'm doing a local installation of SAP GUI 710 Compilation 3. I have selected the following three options: 1. SAP GUI for Windows 7.10 (Compilation 3) 2. BW 3.

  • CC 2014.2 settings migration

    Hooray! I've finally updated CC.. However, following through on these procedures..migrating settings and plug-ins for After Effects CC 2014 (13.0) | After Effects region of interest And have come across another issue. "At the bottom of the General pa

  • Access-to-Oracle via scripts

    Hi, I've been asked to export my Access 2000 database as scripts and data, for the DBA to import into Oracle 10. I've been using 10g Express, SQL Developer and a multi-step procedure. Is there any easier/cleaner way to do this? Thanks for your time.

  • Failed to load servlet Class: MyServletIgnoring: unable to load class:java.

    Hi, I am using WebLogic Server 10.0, i deployed my application in that. It is giving the below error: Failed to load servlet Class: MyServletIgnoring: unable to load class:java.lang. ClassNotFoundException: Class bytes found but defineClass()failed f

  • Why is illustrator converting pantone to CMYK/paler colors?

    Hello, I have been working on the graphic design of a tin top for some time now, and just now came across this problem this morning.  I have been working entirely in RGB since I began so that I could utilize a full range of colors.  Recently, I found