EJB/JPA Related: Objects are not going to delete from a Collection

Hi All,
I am developing a WebDynpro application using EJB3 model with JPA as a persistence tool. I have mapped using Annotations.
All other works run fine but If I deleted a record through view It will not delete from database.
I have two entities : First : OperationDayWorkingCapitalPlan in which following relation is defined:
     @OneToMany(mappedBy="operationDayWorkingCapitalPlan",targetEntity=BranchPartyCollectionsPlan.class,
       fetch=FetchType.EAGER, cascade=CascadeType.ALL)
     private Collection<BranchPartyCollectionsPlan> branchPartyCollectionsPlans = new  
       ArrayList<BranchPartyCollectionsPlan>();
related methods:
     public Collection<BranchPartyCollectionsPlan> getBranchPartyCollectionsPlans() {
          return branchPartyCollectionsPlans;
     public void setBranchPartyCollectionsPlans(
               Collection<BranchPartyCollectionsPlan> branchPartyCollectionsPlans) {
          this.branchPartyCollectionsPlans = branchPartyCollectionsPlans;
     public void addBranchPartyCollectionsPlan(BranchPartyCollectionsPlan branchPartyCollectionsPlan) {
        this.branchPartyCollectionsPlans.add(branchPartyCollectionsPlan);
        if (branchPartyCollectionsPlan.getOperationDayWorkingCapitalPlan() == null || branchPartyCollectionsPlan.getOperationDayWorkingCapitalPlan() != this) {       
             branchPartyCollectionsPlan.setOperationDayWorkingCapitalPlan(this);
     public void removeBranchPartyCollectionsPlan(BranchPartyCollectionsPlan branchPartyCollectionsPlan) {
          if (branchPartyCollectionsPlan == null)
               return;
          if (this.branchPartyCollectionsPlans != null)
               if (this.branchPartyCollectionsPlans.remove(branchPartyCollectionsPlan)) {
                    branchPartyCollectionsPlan.setOperationDayWorkingCapitalPlan((OperationDayWorkingCapitalPlan)null);
and Second one is : BranchPartyCollectionsPlan in which the following relation(inverse) is defined:
@ManyToOne(fetch=FetchType.EAGER)
     @JoinColumn(name="OPERATIONDAYWORKINGCAPITALPLANID")
     OperationDayWorkingCapitalPlan operationDayWorkingCapitalPlan
  related getter and setter:
     public OperationDayWorkingCapitalPlan getOperationDayWorkingCapitalPlan() {
          return operationDayWorkingCapitalPlan;
     public void setOperationDayWorkingCapitalPlan(
               OperationDayWorkingCapitalPlan operationDayWorkingCapitalPlan) {
          OperationDayWorkingCapitalPlan oldOperationDayWorkingCapitalPlan = this.operationDayWorkingCapitalPlan;
          if (oldOperationDayWorkingCapitalPlan != null){
               oldOperationDayWorkingCapitalPlan.removeBranchPartyCollectionsPlan(this);
          this.operationDayWorkingCapitalPlan = operationDayWorkingCapitalPlan;
          if (operationDayWorkingCapitalPlan != null){
               operationDayWorkingCapitalPlan.addBranchPartyCollectionsPlan(this);
Plz help me where am I wrong. Why objects(BranchPartyCollectionsPlan) from collection not delete when I merge the main object (OperationDayWorkingCapitalPlan).
Edited by: kapitsu on Oct 27, 2009 10:24 AM

Hi Mayank,
You can check the below Link.
PSA Not Deleting, error : DDL time(___1):.....0 milliseconds
Regards
Rahul

Similar Messages

  • When SC is partially rejected my manager no workitems are not going to user

    Hi Gurus,
    Below is our requirement:
    Requester (User) creates a SC of multiple line items. Shopping cart is rejected by the manager for a particular line items and rest of the line items was approved, for the rejected line items workitems are not going to requestoru2019s inbox and also e-mail is not triggered to requistioner.(Informing that the SC is partially approved)
    Help us how to implement the above functionality? We have figured out a BADI- BBP_WFL_SECUR_BADI will this BADI suit to our functionality.
    IF then throw some input on this. Or please suggest any OSS note related to this functionality.
    Regards
    Paul

    Hi Daniel,
    Thanks for the quick response.
    WF we used is WS14000133, Last approver is Manager further no approvers.
    For Manger they havenu2019t set (BBP_WFL_SECURITY) any value.
    Regards
    Paul

  • Adding new contacts but the requests are not going...

    Hi, 
    Please assist me on this critical issue. I was using latest version of skype that is 7.5 as it upgraded itself many times during the years. I have been adding new connections to my account as i deal with social media websites. Recently i discovered that the contact requests are not going through. 
    I mean the contacts are real and they are active but when i add them to my skype. The request was sent but not delivered actually. I tested that by creating one more personal account. I have sent request from my primary account to the new one. I checked the new account to see if i got the request or not. And yes there was no request. 
    Then i tried sending request from my new account to the primary one. And i got the contact request. Wondering is that issue related to my account or version. I am sure it is not the case with the version because the new account is using the same version too.
    Please let me know. My skype - [Removed for privacy] and I would like to test it with some of your guys here. 

    Thanks everyone.
    It worked when I changed "Point.java" as follows:
    public class Point {
         private int x;
         private int y;
         public int getXCoordinate()
              return x;
         public int getYCoordinate()
              return y;
         public void setXCoordinate(int newX)
              x = newX;
         public void setYCoordinate(int newY)
              y = newY;
         public Point(int x, int y)
              setXCoordinate(x);
              setYCoordinate(y);
    }Edited by: Abder-Rahman on May 8, 2009 1:10 PM

  • System is not set to changable - objects are not changeable

    Hi Gurus,
    I am trying to open a query in the test system. while opening the query a error message is showing like: system is not set to changable - objects are not changeable.
    Kinly let me know how to solve this error.
    Due to this reason in my Plannin modler screen its showing that query is inconsistant,
    Regards
    Sajid khan
    Edited by: sajid.khan on Jun 22, 2010 9:35 AM

    Hi.
    In RSA1->Transport connection->ShftCtrl0 check whether you have any transport request connected.
    In addition ensure in "objects changebility" that you can change queries.
    Regards.

  • Emails from the organization are not going through ePrint

    Hi,
    I've been having some issues with the ePrint feature that's configured in one of the printers that we have in our office. The printer is a HP LaserJet 200 color MFP M276nw. Every other client from other email addresses such as Hotmail, Gmail or any other address are able to send emails to our ePrint address and are able to print on it successfully. However, all the emails that are being sent from within our organization are not going through. We get an unsuccesful delivery message from the Exchange server stating that 
    The server has tried to deliver this message, without success, and has stopped trying. Please try sending this message again. If the problem continues, contact your helpdesk
    We had checked with our Exchange administrators and they have advised that the email is trying to be sent, but in the destination it is being rejected. How can I get this issue to be addressed?

    Hello praveen_haridas,
    Welcome to the HP Support forums.  I understand that your corporate emails are failing when trying to send an email to the Laserjet 200 MFP 276nw printer's ePrint email address.
    Are you getting any messages about the failed messages in your ePrintCenter/HP Connected account?  If so what does the message state about the failed job?
    Thank you.  
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Service Account details are not going through header(OSB Business service)

    Hi
    I have an issue with service account. Assume I have a proxy service A, Business Service B, Proxy service C.
    A invokes B and B invokes C (A --> B --> C). All calls are through http protocol.
    I created a service account with userid and password details and attached it to the Business service B(Static for basic authentication).
    Added log activity in proxy service C for context variable $header to verify whether userid and password are coming through request header or not.
    I executed proxy service A from sbconsole but I couldn't see userid and password details of created service account in the logs. Only nemespace are logged in the file.
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"></soap:Header>>
    Can someone please help me why service account details are not going through business service request. Am I missing any steps?
    Thanks in advance
    KK
    Edited by: 966531 on Oct 23, 2012 4:23 AM

    Basic authentication information is stored under transport headers (check $inbound) whereas $header is populated for message headers (for e.g. - SOAP headers), so you should be checking $inbound instead of $header
    Regards,
    Anuj

  • Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not deserialized completely

    Hi everybody !
    I have a strange problem with SOAP deserialization in flex 3.2, and I thought this forum will be the best place to get answers ...
    When I try to fetch some objects (like the ones shown below), the XMLDecoder does not deserialize all the properties.
    In this case, it stops at the property named "rating". After it, all other data are lost.
    I've used the flex builder debugger to locate the problem, and this lead me to the following method in the XMLDecoder class :
    getApplicableValues(parent:*, valueElements:XMLList, name:QName,context:DecodingContext, maxOccurs:uint):XMLList:
    State of the variables, before the "bug" :
    The strange behavior appears after the five first properties had been deserialized correctly.
    At this step : startIndex = 5, and the next property to unmarshall is "user" (according to the MExpertNotes object mapping)
    the valueElement's list contains the following elements :
    to simplify the notation, I will write only the position in the list and the xml tag name (see the complete soap response for more details at the end of this post)
    (position, fieldName)
    (0, ID) -> inherited from MotocycletteObjectImpl
    (1,comment)
    (2, noteValidation) (a Bean, never returned by our service -> set to null)
    (3,noteValidationID)
    (4,rating)
    (5,timeOfCreation) -> inherited from MotocycletteObjectImpl
    (6,user) (a Bean, never returned by our service -> set to null)
    (7,userExpert) (a Bean, never returned by our service -> set to null)
    (8,userExpertID)
    (9,userID)
    (10,version) -> inherited from MotocycletteObjectImpl
    when it enters the for loop, at the first iteration the valueElements[i].name is equals to "timeOfCreation" and the name parameter is equal to "user".
    so this test : if (name == null || valueElements[i].name() == name
    || ((name.uri == "" || name.uri == null)
    && name.localName == valueElements[i].name().localName))
    returns false. The skipAhead variable is set to false (and i don't understand why). It stops iterating over the valueElementList, and so, skips all other properties.
    Is this a bug ? Does a workaround exists ?
    This affects many of our objects.
    Any help would be greatly appreciated.
    Best regards,
    Jules Pajot
    R&D engineer for Mikros Image
    www.mikrosimage.fr
    [EDIT] : My Message was too long, so I put the complete message here :
    http://docs.google.com/View?docid=dd6j35ft_38grb9c7cr
    PS : I apologize for my english wich is far from perfect :)
    As a reminder , the XMLDecoder class method ( line 2204 ):

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>The holidays are starting here.  The experts in the area may<br />already be away.  Please file a bug.  It might help if you can simplify your<br />test case to use an XML file that is local so we don&#8217;t need your server<br />connection.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jules Pajot<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Tuesday, December 23, 2008 9:05 AM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> Re: Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not<br />deserialized completely<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new message was posted by<br />Jules Pajot in <br><br /><br><br /><b>Developers</b> --<br><br />  Flex SDK 3.2 : Unmarshalling issue : SOAP objects are not<br />deserialized completely<br><br /><br><br />Nobody has an idea about my problem ? <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b74f93/0">Flex SDK 3.2 :<br />Unmarshalling issue : SOAP objects are not deserialized completely</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b74f93!folder=.3c060fa3">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>

  • Mails are not going

    Hi Experts,
    I have developed a RFC to approved leave, this RFC will send mail to required recipients. After executing the RFC, when we check into the TCODE: SCOTT mails are sending properly. While the same RFC calling from .NET mails are not going.
    Please let me know any kind of configuration required in .NET or Share point.
    Please do the needful.

    Hi,
    Refer below links.
    Mails are in "Waiting" status in SCOT
    Mails not send in SOST
    Regards
    Durga

  • Mails are not going from apex application

    Hi,
    Mails are not going from my apex application. I had done the instance settings by logged in as admin. SMTP port is also connecting. Please help me to solve the issue.

    Hi,
    Mail queue is vacant. I think the problem is with the process. No process or validations are working. Actually, I have copied this application from another schema. Is there is need to set anything?..I had regenerated all the tables,functions,triggers in my schema .Processes and validations are completely inactive

  • My messages are not going through or coming in from other iOS devices.  Having to send and receive in SMS.  What is up?

    My messages are not going through or coming in from other iOS devices.  Having to send and receive in SMS.  What is up?  Anyone else having these issues?

    There's an article that Apple has acknowledged this issue. They recommend turning off imessages, reset all settings and then reactivate imessages.
    If that doesn't work, you may just have to wait until they release an update, which should be pretty soon.

  • Messages are not going through in my Ipad. I have upgraded to ios5

    My messages are not going through in my ipad. Recently I upgraded to OS to ios5. It says not delivered.

    Try calling *228 and choose option 1 to reset the 0's and 1's on the device.
    Is there a setting on her phone that she may have triggered in her contact for you by accident to block your texts

  • HT5627 My I messages are not going through

    My I messages( text) are not going through
    I have to change all to deliver as text

    Yes, many are experiencing this issue.  A phone reset or going to Settings > General > Reset > Reset Network Settings resolves the issue.
    Let Apple know about the issue here:  http://www.apple.com/feedback

  • Catalog objects are not found sometimes.

    Sometimes we hit an error that our catalog objects are not found. We find that the relevant column views in the schema _SYS_BIC are missing. So it should be the root cause. But we don't know why these views are removed.  Could you give us some explanation?
    Thanks,
    Li

    Hi Li,
    I think maybe they are deleted by someone manually.
    BR,
    Phoebe

  • Some performance counter objects are not available for a 32-bit process on 64-bit versions of Windows Server 2012 standard

    When we try to gather performance counter information for a 32-bit process on a 64-bit computer that is running Microsoft Windows Server 2012, all our performance counter objects are not available with 32 bit perfmon application (C:\Windows\SysWOW64\perfmon.exe)
    I didn't notified any errors while registering our counter objects or while running Perfmon.exe
    Note: Same counter objects are available and working fine with Windows Server 2008 R2.
    for diagnostic our counters on WIN2012, ran command as follows:
     cd c:\windows\sysWOW64
     lodctr /Q
    I am able to see all our counter objects on response and infact all were shown as enabled, as shown below
    Appreciate quiclk response with solution or clues to diagnose it more details.
    Thanks & Regards,
    Sudhakar Rudra

    Hi,
    Thanks for your reply.
    I hope you understood our problem.
    same our system counter objects (ver x), we able to browse from Perfmon 32 bit app on Windows 7, Windows 2008 R2 (64bit) OS but not on Windows 2012.
    I am able to see all counter objects registered as follows (same at HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\HMI Alarm Class\Performance,
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\HMI Alarm Class\Performance
    and
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HMI Alarm Class\Performance)
    Only difference I observed that "Disable Performance Counters" were set to 4 in Windows 2012 OS unlike other windows 7 64bit OS and there is no differnece for remaining all entires.
    I tried setting that "Disable Performance Counters" value to "0", but some how they get reset to "4", no luck..
    I think "Disable Performance Counters" value either "0", or "4", should not matter for browsing our counters with 32bit bit perfmon applicaiton.
    Do you see any issues of registry entries. ?
    On what basis perfomance monitor list few enabled counters?
    How can we add our counters manually to perfomance monitor?

  • Error - Some objects are not available to your user profile...

    Hello,
    It is for BI 4.1 on Windows. We have a connection called CON1 pointing to DB1. It uses UNIV1 All reports were working fine and we were able to refresh it as well.
    Now the CON1 is changed to point to DB2 and we are now getting following error - "Some objects are not available to your user profile. You cannot refresh this Query. See your Business Objects administrator to request rights".
    If I create a new report using CON1 and the it works fine. Only the old reports are still causing issue on refresh. I tried with Admin account as well and same issue.
    The CON1 is still CON1 and universe UNIV1 is still using CON1. Just the content was edited from DB1 to DB2 in CON1. If we create a new report then no issue.
    Can anybody advice if something needs to compiled. Your help will be greatly appreciated.
    Regards,
    SS

    Your old reports are still pointing to same connection. Remember the DSN has been pointed to use another Database. The records and entries will be different. In addition as the records or object mapping have changed for these reports. Hence this would be a very normal behaviour.
    Create a new connection named CON2 or something like that to point DB1 as per your requirement. This way your original reports would work.

Maybe you are looking for

  • CUE 8.6.1 Language issue

    I am building a new CME/CUE system. It is running CUE 8.6.1 and the only option for languate is English(UK). There used to be more of them. Right now, the gal on the voicemail system has a British Accent. Can that be changed and if so, how?

  • How to process Excel through JDBC

    Hi, there! In windows,we could build an ODBC Driver for excel,then how to write the sql statment to query and update the content of the excel through JdbcOdbcDriver? I have create an ODBC DataSource named Register,the excel file is RegisterInfo.xls a

  • Maps in Ipad mini wifi version

    Does Ipad mini have Maps or not?......Expecting a Quick reply...its emergency!!!!

  • CRM BP relationship not visible in tcode BP in ECC

    I replicated the Sold to party and created Relationship HAS scn with another partner . The Partner is visible as Partner function in sales area data as partner function but cannot see it in BP tcode in relations tab in ECC. What we need to do to get

  • Updated OWB module available in "Oracle By Example" series on OTN

    All, The Oracle By Example series on OTN has been updated to Oracle9i Release 2. This includes a Warehouse Builder module updated from 3i to 9i. The module is a simple set of hands-on activities using the order entry tables that come with the databas