Should Parent objects be updated when adding a child?

Hi,
I have 2 objects in a one to many relationship, a parent with a collection
of child objects.
My parent object is being updated when I add child objects to it -
although nothing on the parent object has changed (except maybe the
JDOLOCKX column).
Is this meant to happen - as part of the optimistic locking? Does it try
and lock the owner of the collection when a new member is added?
Thanks in advance,
Chris

We are planning a metadata extension to permit writing to a collection
without changing optimistic lock values for the owning class.
I don't have a good feel for the time frame of the feature yet.
-Patrick
On 5/21/02 1:06 PM, in article acduqj$e4j$[email protected], "Chris
Kimpton" <[email protected]> wrote:
Hi,
This is occuring across JVMs for me - so I have put a crude re-try
facility in place - it has a few goes at doing the work and then gives up
if that is not sufficient. Not nice, but it seems to work.
Chris
David A. King wrote:
I too have seen this behavior, which becomes frustrating when adding many
children concurrently--I receive ConcurrentModificationExceptions on the
parent, even though the parent itself did not change (except of course the
collection of children) with optimisitic locking. I have had to serialize
transactions manually to avoid the exceptions.
Thanks,
David A. King
Chris Kimpton wrote:
Hi,
I have 2 objects in a one to many relationship, a parent with a collection
of child objects.
My parent object is being updated when I add child objects to it -
although nothing on the parent object has changed (except maybe the
JDOLOCKX column).
Is this meant to happen - as part of the optimistic locking? Does it try
and lock the owner of the collection when a new member is added?
Thanks in advance,
Chris

Similar Messages

  • ITunes Music Library.xml not updating when adding new songs

    I have about 150.000 music tracks on my iMac and iTunes didnt have any difficulty with it. When using the songs in DJ program Native Instruments Traktor Pro, this program checked the latest update of the iTunes Music Library.xml file and everything went ok. Whenever I changed a smart playlist or added songs, my Traktor looked at the updated .xml file and Traktor updated it's own files.
    SUDDENLY, and I dont know why, this iTunes Music Library.xml file did not update anymore. Whenever I change a song or add a song, the 'update date' in my finder next to the iTunes Music Library.xml file stays the same (1 May 2010) This means my DJ software does not show the updated/added songs...
    Plse help... what should I do... I am a professional DJ and I especially bought this iMac for the purpose of DJ'ing. Because of this issue, I can't use it anymore...

    try if the suggestions in this thread help: http://discussions.apple.com/thread.jspa?threadID=2168081&tstart=0.
    JGG

  • Tree display not updating when adding first node to expanded node

    Hi
    Please have a look at the following code. To reproduce the faulty behaviour you have to expand the item, then click "add" button and observe, that nothing happens. Collapsing, then expanding the node shows the added children. I use Flex 3.5.0
    Is this a bug in the SDK or am I missing some auto update switch?
    Thanks!!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
         minWidth="955" minHeight="600"
         creationComplete="run()">
         <mx:Tree id="tree" width="300" height="500" labelField="name" />
         <mx:Button label="add" click="onClickAdd()" />
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.utils.ObjectProxy;
                   protected var itm1:Object;
                   protected function run() : void
                        var ac:ArrayCollection = new ArrayCollection();
                        this.itm1 = new ObjectProxy({name:"1", children:new ArrayCollection()});
                        ac.addItem(this.itm1);
                        this.tree.dataProvider = ac;
                   protected function onClickAdd() : void
                        this.itm1.children.addItem({name:"child"});
              ]]>
         </mx:Script>
    </mx:Application>

    Yep, that works! Thanks! Would have never thought of that...
    Here is my modified code:
              <mx:Tree id="tree" width="300" height="500" labelField="name"
              dataDescriptor="{new DefaultDataDescriptor2()}"
              />
    and new class
    package de.byteconsult.controls.tree
         import mx.collections.ICollectionView;
         import mx.controls.treeClasses.DefaultDataDescriptor;
         public class DefaultDataDescriptor2 extends DefaultDataDescriptor
              public function DefaultDataDescriptor2()
                   super();
              override public function hasChildren(node:Object, model:Object=null) : Boolean
                   var children:ICollectionView = this.getChildren(node, model);
                   return children != null;

  • Common Phone Profile change is not updated when adding new phone

    We have CUCM 8.5.1 and phone setting for web access is disabled by default when creating a new phone. Updating the field in Common Phone Profile, the Standard Common Phone Profile has no affect on this setting. How can get web access enabled by default for each new manual phone add without having to change the setting manually in the add phone, phone configuration screen?
    Thanks,
    Dennis

    Did you select the Override Setting checkbox on the CPP? The value shown is only enforced when the box is checked. The same goes for the global or per-device values.

  • Defaulting the student status when adding a child.

    Hello All,
    How can we default the Student indicator in infotype 21 when we are trying to add a child under age 19 to always on.
    When I enter date of birth and hit enter it should default the Student indicator field to with a check mark when the child is under age 19.
    Please advice. Its urgent!
    Thanks,
    Chakri.

    Hi,
    You have to write an User Exit for this. Check this User Exit enhancement  PBAS0001. Hope this will solve your problem.
    Thanks,
    Sarika.

  • Moving from Bridge to Lightroom, when adding existing files on hard drive, will metadata transfer? Should I choose embed sidecar in file handling or will it automatically happen if I choose standard?

    Moving from Bridge to Lightroom. Will metadata in existing files be recognized by Lightroom, and should I select embed+sidecar when adding files to library for the first time.

    Thanks guys, appreciate the feedback.
    CHRIS - you are exactly right about my FUTURE workflow. What I'm trying to figure out now is how to best handle images already processed. My import should be OK based on the way I have duplicates in separate directories, BUT I'm wondering how to avoid seeing all of these duplicates in LR when I search by keyword, etc.? I guess I can somehow flag the RAW files and only get them in my results.
    One question though - Stacks, etc. sounds great for the LR processed images. But what about variations based on processing in Photoshop after the LR Develop stage? I guess in this case I will just have to keep duplicate images if I have multiple versions from my PS work?
    ISAAC - Thanks for clarifying that LR will recognize my XMP files from Bridge. What about the opposite direction . . . if I edit something in LR and capture this via XMP, it won't prohibit Bridge from recognizing XMP info if I access a file via Bridge, will it?
    ALSO - Do you know where I can find info about tracking via XMP vs. the central database? You mentioned a couple of valid points, but I'm not sure I have a full handle on the pros/cons of these options.
    Thanks!
    Mark

  • Is there a way to automatically update events in the Outlook 2010 calendar when adding events in the iCloud calendar in Outlook 2010?

    I am using Windows 7 and Outlook 2010. I have synced my Outlook calendar with my iPhone using the iCloud Control Panel. This is great, but when I add an event in the iCloud calendar in Outlook 2010 and subsequently send out invitations to the event, I get the following error:
    "This meeting is not in the Calendar folder for this account. Responses to this meeting will not be tallied. Do you want to send anyway?"
    I select "Yes" and the invite goes out. However, when invitees receive the email invitation, there should be 2 emails - one from Outlook and one from iCloud. The iCloud invite does not always come through. If the invitee responds to the Outlook email invite, it does not show up on the iCloud Calendar.
    Is there a reason that the iCloud email is not always sent or is there a way to some how update the Windows Outlook Calendar when adding events in the iCloud Calendar through Outlook?

    I have just discovered this problem as well.
    Very annoying!
    Now all off my meetings entered in Outlook on my desktop PC are not syncing with my ipad and iphone.
    If I had known this would have happened I would never have downloaded Version 2.0 of the icloud control panel.
    Does anyone know how I can get the earlier version back?

  • My Recently Added playlist won't update when I buy a song on my iPhone

    For some reason, my "Recently Added" smart playlist doesn't update when I buy a song on my iPhone 4. I have to Sync with iTunes for it to update. How can I get it back?

    1. Select your Smart Playlist
    2. Right Click and select "Edit Smart playlist"
    3. Add a new condition "Playlist IS Music" and make sure "Live Updating" is also checked. Press Ok
    4. Sync and it should work...

  • When adding a yahoo email account I keep getting "Server Unavailable" notification.  This started after I updated my software.  I deleted my accounts and tried to re-add them but continue to get this notification??

    When adding a yahoo email account I keep getting "Server Unavailable" notification.  This started after I updated my software.  I deleted my accounts and tried to re-add them but continue to get this notification??

    hello, this is a scam tactic that is trying to trick you into installing malware, so don't download or execute this kind of stuff! as you've rightly mentioned, you're already using the latest version of firefox installed and you can always initiate a check for ''updates in firefox > help > about firefox''.
    you might also want to run a full scan of your system with the security software already in place and different tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes], [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] & [http://www.kaspersky.com/security-scan kaspersky security scan] in order to make sure that there isn't already some sort of malware active on your system that triggers these false alerts.
    [[Troubleshoot Firefox issues caused by malware]]

  • Parent members not being updated when running AGG

    I have a scenario where eventhough the bottom level members change the parent members are not being updated when we run an agg
    For example if the bottom level member was 150 and we run the aggregate the numbers are fine. If the bottom level member was changed to #Missing then the parent members are not updated when we run the agg
    IN the script below we use CALC DIM(COstCenters,SpaceTYpe)
    My concern is the setting SET FRMLBOTTOMUP ON i use, because it looks like it's skipping that block. HOw can work around this issue without affecting the performance too much. For example using SET CREATEONMISSINGBLK ON might help, but will have a performance impact
    Here are the details of the script
    SET MSG SUMMARY;
    SET FRMLBOTTOMUP ON;
    SET CALCPARALLEL 4;
    FIX("Budget","Version1", "FY2011", "RSF","No_Period","M3","M6","M9","M12",@IDESCENDANTS("$1"),@LEVMBRS
    (SpaceType,0),@LEVMBRS(CostCenters,0))
    CALC DIM (ManagedBU,AllocatedBU);
    ENDFIX
    FIX("Budget", "Version1", "FY2011", "RSF","No_Period","M3","M6","M9","M12",AllocatedBU,ManagedBU,
    @LEVMBRS(SpaceType,0),@LEVMBRS(CostCenters,0))
    "$1";
    ENDFIX
    /* Aggregating numbers for the report so it could be viewed n a top cost center level */
    FIX("Budget", "Version1", "FY2011", "RSF","No_Period","M3","M6","M9","M12",@IDESCENDANTS(AllocatedBU),@iDESCENDANTS(ManagedBU),@IDESCENDANTS("$1")
    CALC DIM(COstCenters,SpaceTYpe);
    ENDFIX
    /* Aggregating numbers for the report so it could be viewed in a top regional level*/
    FIX("Budget", "Version1", "FY2011", "RSF","No_Period","M3","M6","M9","M12",@IDESCENDANTS(ManagedBU),@IDESCENDANTS(AllocatedBU),@IDESCENDANTS(SpaceType),CostCenters)
    @IANCESTORS("$1");
    ENDFIX

    yes Aggmissg will work with from bottom up. As for performance, believe it or not, having Aggmssg on is quicker that off. That is because when off, it has to look at the children blocks to determine if there are data values present that need to overwrite the parent value where hen it is on, it does not look it just does it.

  • When adding a mp4 videos as a slide, what should quality be changed to?

    When adding a mp4 videos as a slide, what should quality be changed to? (Optimized, J-Peg or High 24-bit)
    What will this do?
    Thanks,
    Mike

    Himanshu, if loading a video on a slide, would the slide quality setting for that slide have any effect at all? It's my own understanding that the videos are always separate and loaded when needed. So I'm curious if the slide quality would remotely matter in this case.
    Cheers... Rick

  • Om,schdule_ship_date should not be updatable when we change a request_date

    Hi all ,
    can you please help to resolve this issue?
    In OM module Sales order form
    we have request_date and schdule_ship_date and they are some default rules are defined
    as sysdate for both the dates and thses should be effected once you save the form.
    our requirement is schdule_ship_date should not be updatable when we change a request_date
    for the already existing sales order(SO).
    This can be achieved through form personalization.
    Thanks & Regards
    maruthi

    Hi dgood76,
    Becoz there are so many personalizations and dff customizations are done on the form .
    If i remove the dependency is anything is effected .
    Thank & Regards
    maruthi

  • Schdule_ship_date should not be updatable when we change a request_date

    Hi all ,
    can you please help to resolve this issue?
    In OM module Sales order form
    we have request_date and schdule_ship_date and they are some default rules are defined
    as sysdate for both the dates and thses should be effected once you save the form.
    our requirement is schdule_ship_date should not be updatable when we change a request_date
    for the already existing sales order(SO).
    Thanks & Regards
    maruthi

    Duplicate.
    schdule_ship_date should not be updatable when we change a request_date

  • [svn:fx-trunk] 7073: When looking around a tab group to determine which object to focus on, not only should the object be selected, but it should also be enabled and visible.

    Revision: 7073
    Author:   [email protected]
    Date:     2009-05-19 08:27:59 -0700 (Tue, 19 May 2009)
    Log Message:
    When looking around a tab group to determine which object to focus on, not only should the object be selected, but it should also be enabled and visible.
    QA Notes:
    Doc Notes:
    Bugs: SDK-19717
    Reviewers: Alex
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-19717
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as

    Revision: 7073
    Author:   [email protected]
    Date:     2009-05-19 08:27:59 -0700 (Tue, 19 May 2009)
    Log Message:
    When looking around a tab group to determine which object to focus on, not only should the object be selected, but it should also be enabled and visible.
    QA Notes:
    Doc Notes:
    Bugs: SDK-19717
    Reviewers: Alex
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-19717
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/FocusManager.as

  • Parent key 1393696 not found when adding child 1393727.

    By posting, I received this :
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    type: java.lang.IllegalArgumentException
    java.lang.IllegalArgumentException: Parent key 1393696 not found when adding child 1393726.
    at com.jivesoftware.util.LongTree.addChild(LongTree.java:99)
    at com.jivesoftware.forum.database.DbTreeWalker.addChild(DbTreeWalker.java:233)
    at com.jivesoftware.forum.database.DbForumThread.addMessage(DbForumThread.java:617)
    at com.jivesoftware.forum.proxy.ForumThreadProxy.addMessage(ForumThreadProxy.java:145)
    at com.jivesoftware.forum.action.PostAction.createMessage(PostAction.java:1083)
    at com.jivesoftware.forum.action.PostAction.execute(PostAction.java:946)
    at com.jivesoftware.forum.action.PostAction.doPost(PostAction.java:666)
    at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:300)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:166)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.jivesoftware.forum.action.JiveExceptionInterceptor.intercept(JiveExceptionInterceptor.java:63)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.jivesoftware.base.action.JiveObjectLoaderInterceptor.intercept(JiveObjectLoaderInterceptor.java:56)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at oracle.wocapps.forum.action.OracleLocaleInterceptor.intercept(OracleLocaleInterceptor.java:74)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:71)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
    at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
    at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
    at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
    at com.jivesoftware.base.util.JiveWebWorkServlet.service(JiveWebWorkServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at com.jivesoftware.util.SetResponseCharacterEncodingFilter.doFilter(SetResponseCharacterEncodingFilter.java:53)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
    at com.jivesoftware.util.SetRequestCharacterEncodingFilter.doFilter(SetRequestCharacterEncodingFilter.java:48)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)

    Check the adapter that is attached to the child table , compile it again and try adding .
    BTW which connector you are using and paste the error trace from log files
    Thanks
    Suren

Maybe you are looking for

  • I lose all my music when i switch ipod touch off

    please help whenever my ipod is switched off i lose all my music this also happens whn the battery is flat. It has been restored but this made no difference, also it seems to be running a bit slow ie there@s a delay when you touch an icon. help me fr

  • IMovie vs iMovie HD

    Now I am really confused, and this may be a really silly question. When I first started using iMovie a couple of weeks ago, I guess it was the HD version (5.0.2). I imported some 8 mm video tape yesterday--apparantly into iMovie (version 3.0). What i

  • Question reagarding digital movie playb

    I?have a z5450 and a sound blaster x-fi fatality f ps. I have a direct analog input and digital coax input. For playing dvd movies I use windvd 8 platnuim. In my sound card settings, I tried to get the spdif input setting to "SPDIF bypass" but as soo

  • Firefox won't load any web site under my login, if I use another account it works fine, this problem start with 7.01 update. I have 8.0 now, other browser works fine with no problem.

    unable to load any web site, no error message, just a blank page. safari and chrome work fine, in fact I am using chrome to type this up. This problem only limited to my account, I have created other account and firefox work as it should with no prob

  • Product code help!!!!

    I recently purchased photoshop cs6 from the local store (Harvey Normans) here in New Zealand. I am trying to download my software however i need a seriel number. I wen onto the redeem page to put in my product number to recieve the seriel number howe