Rc 3:  orphan-delete fixed but problems with unidirectional 1:n

The orphan-delete problem is already fixed with rc3 released today:
parent.getChildren().clear(); tx.begin(); pm.attachObject(parent); tx.commit();
results in "delete from children".
Looks great as long I map parnt-children relationship in bidirectional way:
In Parent Class FilterCriteriaImpl:
<field name="entries" mapped-by="criteria" dependent="true" default-fetch-group="true">
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
</field>
and in Child Class AbstractSearchCriteriaEntry:
<field name="criteria" column="SMSEARCHCRITERIAID" default-fetch-group="true">
<extension vendor-name="kodo" key="type" value="FilterCriteriaImpl"/>
<foreign-key/>
</field>
As soon I try to map it in unidirectional way:
<field name="entries" dependent="true" default-fetch-group="true">
<extension vendor-name="kodo" key="jdbc-element-delete-action" value="cascade"/>
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
<element>
<column name="SMSEARCHCRITERIAID" target="SMSEARCHCRITERIAID"/>
<foreign-key/>
</element>
</field>
I got problems:
tx.begin(); pm.deletePersistent(parent); tx.commit();
results in:
- update children set parentid = null;
- delete from children
The update statement generates FK key violation !
So, basicaly the improvement from rc2 to rc3 is that KODO is now aware of orphan-delete sematic
in both cases: delete(parent) and/or parent.getcChildren().clear()...
Bit the other problem is still here: in unidirectional case KODO
trying to set child.parentID=null before delete child. That makes no sense and violates DB contrains !
Do I missing something or is this a bug ?
thanks
Andre Teshler

Does this happen with the final release?
Andre Teshler wrote:
The orphan-delete problem is already fixed with rc3 released today:
parent.getChildren().clear(); tx.begin(); pm.attachObject(parent); tx.commit();
results in "delete from children".
Looks great as long I map parnt-children relationship in bidirectional way:
In Parent Class FilterCriteriaImpl:
<field name="entries" mapped-by="criteria" dependent="true" default-fetch-group="true">
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
</field>
and in Child Class AbstractSearchCriteriaEntry:
<field name="criteria" column="SMSEARCHCRITERIAID" default-fetch-group="true">
<extension vendor-name="kodo" key="type" value="FilterCriteriaImpl"/>
<foreign-key/>
</field>
As soon I try to map it in unidirectional way:
<field name="entries" dependent="true" default-fetch-group="true">
<extension vendor-name="kodo" key="jdbc-element-delete-action" value="cascade"/>
<collection element-type="AbstractSearchCriteriaEntry" dependent-element="true"/>
<element>
<column name="SMSEARCHCRITERIAID" target="SMSEARCHCRITERIAID"/>
<foreign-key/>
</element>
</field>
I got problems:
tx.begin(); pm.deletePersistent(parent); tx.commit();
results in:
- update children set parentid = null;
- delete from children
The update statement generates FK key violation !
So, basicaly the improvement from rc2 to rc3 is that KODO is now aware of orphan-delete sematic
in both cases: delete(parent) and/or parent.getcChildren().clear()...
Bit the other problem is still here: in unidirectional case KODO
trying to set child.parentID=null before delete child. That makes no sense and violates DB contrains !
Do I missing something or is this a bug ?
thanks
Andre Teshler

Similar Messages

  • HT5137 I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    Personally, I would never use a debit card online, for security reasons.  If your card gets hacked its your money that is stolen.  At least with a credit card it is the card providers money that is stolen.
    Anyway,  I would delete the app and re-install.  If you paid for the app in the first place you will be able to re-install free of charge.  Also, the app should allow the in-app purchase to happen again as it should recognise that you have already purchased it previously.
    Finally, it might be that the 3G doesnt have as much ram as more recent models of iphone and you may have applications running in the background that are preventing the app to function with the in-app purchase unless you shut down any apps eating all you memory that are running in the background.  Shut-down these apps (and the simpson tap out app) by exiting to your home screen and double-tapping the home button to show what apps are running in the background.  press and hold any of the open apps until it starts shaking.  close all the apps down.  exit then re-launch the app.
    good luck.

  • I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Purchase/install any new app
    - Try the remaining items of:
    iOS: Troubleshooting applications purchased from the App Store

  • How to fix a problem with my book pro that has a gray screen with a folder with a question mark on it

    does any one know how to fix a problem with my book pro that has a gray screen with a folder with a question mark on it?

    Hello Mokhtary123 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.
    But basically your system can't find the boot disk. Usually this is a symptom of a dead/dying/corrupted hard drive;
    A flashing question mark or globe appears when you start your Mac - Apple Support
    OS X Recovery
    http://support.apple.com/en-us/HT4718

  • Has Apple fixed the problem with 4G cellular connection?

    Has Apple fixed the problem with 4G cellular connection on the iPad 3?

    Cellular connection problem was for US connection in Houston, Texas.  Have an iPad 2 which functions perfectely on Wi-Fi or 3G.  Bought an iPad 3 strictly to get the increased speed from the 4G LTE connection.  Purchased on with the AT &T cellular.  Wi-Fi functions fine, but 4G LTE connection is terrible when it connects at all.  Went to AT&T and they said no problems with service in my area, but never get over 2 bars and most times, Web pages load very slow or will hang and not load at all.  Went to the Apple store and they said it was AT&T network problem and went to AT&T and they said no problems with their service.  Went to the Apple communities forum here and discovered that many people were having the same problems with the 4G LTE cellular connection on their iPad 3's.  Didn't seem to matter if it was AT&T or Verizon.  So I decided that I would just return the unit and wait for Apple to fix the problem.  Hence my question.
    Appreciate very much your time in responding to my question.

  • [svn:fx-trunk] 8452: - Fix flicker problem with constraint bound text that is being autoSized.

    Revision: 8452
    Author:   [email protected]
    Date:     2009-07-08 08:38:32 -0700 (Wed, 08 Jul 2009)
    Log Message:
    - Fix flicker problem with constraint bound text that is being autoSized.  If the remeasure is done in a 2nd pass you will see a flicker as all the objects are moved to accommodate the reflowed text.
    - Fix data binding issue with text setter.
    - Rework measure() to accommodate implicit autoSize.
    If explicitWidth or widthInChars specified and explicitHeight or heightInLines specified, or for now, blockProgression != "tb", the text has fixed dimensions and is not auto-sized.
    If no text and width specified, but no height, start at specified width and one line high and grow taller.
    If no text and height specified, start at 1 char wide with the specified height and grow wider.
    If neither width nor height specified, and toFit lineBreaks, start at explicitMaxWidth, or default maxWidth of 160, and grow taller.
    If neither width nor height specified, and explicit lineBreaks width is unlimited and can grow taller.
    These are further constrained by min/max Width and Height except in the case that explicitWidth or explicitHeight are specified.
    - Change default maxWidth for RichText and SimpleText to 160 to match RET.  Previously it was 10000.  This is used for
    text with toFit lineBreaks if a width isn't specified.
    QA Notes: 12 or so TextGraphic tests fail because of the new default maxWidth.
    Doc Notes:SDK-22014, SDK-21837
    Reviewers: Gordon
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22014
        http://bugs.adobe.com/jira/browse/SDK-21837
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextContainerManager.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/TextGraphicE lement.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/RichEditable TextEditManager.as

    You have used elements like header, footer, footer1 and nav without using the correct DOCTYPE declaration. Replace the first line of your code with
    <!doctype html>
    Also have a look here for other problems http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhome.surewest.net%2Fstorytales%2F test%2Fforposting.html
    After the above has been fixed, please come back here to fix the remaining problem(s)
    Gramps

  • QT 7.4.5 did **not** fix the problem with some .mp4s

    It has been 3 versions now - 7.4, 7.4.1, 7.4.5 - since Apple broke the ability of QuickTime Player to play some .mp4 files. Apple says it is because they have some kind of malformed headers, yet they play fine in iTunes. So why can't QT Player play them, and some people report they have problems when put into Keynote?
    Apple has broken functionality for lots of users. Time and again this bug has been brought to their attention. It apparently is a design decision not to fix this, and it is a big disappointment.

    The story so far:
    If you are having problems playing MPEG4 video in Quicktime 7.4 (and Apple are aware that some users have had such problems) you should carefully check in
    /Library/Quicktime and
    /Library/Internet Plug-ins and
    Home/Library/Quicktime
    to check whether you have any third party plug-ins that are not completely up to date.
    Current versions of Flip4Mac and DiVX and Perian do NOT cause failure alone or in combination. However the one SPECIFIC extension that ALWAYS causes the failure alone or in groups is 3ivxMediaImp. All other 3ivx extensions DO work. Remove only that ONE SPECIFIC extension.
    Please try this and see if it fixes your problem with QT Player, the QT Firefox Plugin, and iTunes not playing MPEG4 files (including mp4 files).
    Older 3ivx and DivX components are often incompatible with new QuickTime versions and are, in many cases, obviated by component packs like Perian.
    This is not the only explanation for issues with MPEG4 file playback in QuickTime 7.4 and later, however. The issue with videos from democracynow.org and others, for instance, is the result of that content not complying with MPEG4 standards (namely that they use bogus track dimensions). QuickTime had previously ignored invalid track dimensions but this was changed in order to support properly authored anamorphic content.
    The recent update to QT 7.4.1 fixed a number of issues but some problems are unavoidable when working with non-standards compliant content. The standards are important for many reasons including keeping hackers from manipulating improperly coded web pages.
    A further problem was the fact that the developers of iSquint conceded that in many cases, the files do not play because they have been created in a non-standard way (the tool used to create them was broken). They have therefore included a Debreaker as a part of the latest version of iSquint. If your files are of this type, then you can run them through this app without having to downgrade QuickTime. This could save you a lot of hassle!
    http://www.isquint.org/getit.php
    However, in other cases, there is a workaround (also the basis for why those files will still play in iTunes): there are a few ways to trick QuickTime into ignoring the invalid track data. For instance, rename the files .3GP and they'll show up just fine.
    Post back if you want a list of the plug-ins you should have in order to play pretty much anything in Quicktime.
    The recent (mostly security) update to Quicktime 7.4.5 has not changed the situation as described.

  • How to fix underscan problem with footage

    I am trying to help a friend fix a problem with some footage he shot. A client was standing in front of a painted matte. The footage was shot,(and cannot be re-shot) and once back in the studio he found that a the edge of the matte that is not painted is showing up beyond the TV safe area. It can be seen on a computer screen and if shown thru a projector. The viewfinder of his camcorder did not show this problem.
    So how can we fix it? It is a narrow band of white on the left side of the screen. The problem is that part of some leaves cross over it and out of frame. We have tried just simply scaling it up to get beyond the white edge but the picture quality begins to degrade. We have to fix this using FCP since that is all that is available to us. The clip is fairly long so we probably won't have the time to fix it in Photoshop.
    Any help is greatly appreciated.
    He is using FCP4.5 on a dual processor G5.
    Thanks!
    Ymir

    The cropping would leave a black bar. Something I was thinking about doing has cropping involved. I thought about duplicating the clip and stacking it over the original clip. Then crop it as suggested and then scaling the clip underneath and apply a Gausian blur. This would eliminate the white edge. Problem is, I have a hard line where the cropping took place. If there was some way to just feather the left edge of the crop.
    My friend thinks some type of masking needs to take place where we could just re-color the white bar but as of yet we haven't discovered how to go about it.
    Thanks for the suggestion,
    Ymir

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Hey Apple when are you going to fix the problems with IOS 8.3??

    Hey Apple when are you going to fix the problems with IOS 8.3??
    Message is working weird.
    I don't have internet service when I'm away from my WiFi, because my phone won't use LTE now.
    Should I wait for a IOS 8.3.1 update or reset my phone to factory and start over?
    If there's a fix coming when will we see it?
    (I'm using iPhone6 plus)
    I've tried everything else to fix the problems I'm having. Soft restart. Hard restart. Used your chat line. Called Verizon. Reset network settings.... Help!!!!!
    I've posted on the Apple Communities about all this and I've sent in a couple of bug reports.
    I live up in the mountains and MUST be able to access my Verizon LTE for information if there is a fire! I'm in California!

    I have a Verizon iPhone 6 and am having none of those problems.
    SueMac wrote:
    Should I wait for a IOS 8.3.1 update or reset my phone to factory and start over?
    Didn't they already have you do that? If you haven't, yes, you should restore your phone as new and test.
    I live up in the mountains and MUST be able to access my Verizon LTE for information if there is a fire! I'm in California!
    If you are in a situation where you may need emergency information, organizations such as the Red Cross recommend things like this:
    http://www.amazon.com/Epica-Emergency-Digital-Flashlight-Certified/dp/B00CZDT30S /ref=sr_1_1?ie=UTF8&qid=1429463666&sr=8-…

  • We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    Sounds like it's a problem with the Acrobat settings. Did you set them to the same resolution?

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • WHEN or HOW to fix the problem with Thunderbolt/Side screen problems

    WHEN or HOW to fix the problem with Thunderbolt/Side screen problems (Cinema screen). Keeps blinking on & off then eventually completely off. Would have thought Apple would have fixed the problem by now as it is apparently to do with the Thunderbolt connector!.

    Hello, might it be Video card related?
    See if yours is on the recall list...
    iMac (27in): AMD Radeon 6970M Video Card Replacement Program (del 'mid 2011')
    http://xlr8yourmac.com/
    http://support.apple.com/kb/TS5167?

  • My iphoto library folder with files of my pictures is missing from the pictures folder, only the application icon remains.  I have read through similar discussions but have not managed to fix the problem with the recommended solutions.  Can anyone help?

    I have a Macbook Pro with iphoto '08 running on Mac OS X version 10.5.8.  I used to be able to go to my pictures folder on my HD and access my pictures via that iphoto library folder.  There used to be a small arrow next to the iphoto icon with all the albums then listed within the folder (to the right).  That arrow is now gone and all I have is the iphoto application icon which just reopens iphoto when I click on it, but I want to be able to access the data files.  Somehow I do have files btwn 2008 and 2009 but it hasn't created these since then...Could someone please help me to restore this ability?  I have read other similar posts but they seem to be related to lost data all together and I do luckily have all my pictures in iphoto still. I just can't access them in the pictures folder which means I can't access them on my external hard drive.  I am now out of start up disc space somehow so I figured I had to delete some albums (I have 12,090 pictures) and do have them backed up but want to make sure I can go back for them when I need them.  I did export all the pictures to a folder on the hard drive but it is all 12,090 in one long list with only numbers as names and not in any order, this will be a nightmare to access later!  Please help!  Thank you!

    You can’t open your current photo library using this version of iPhoto.
    That indicates that that is your library.  Put it in your Pictures folder if it already isn't there and make sure it's named "iPhoto Library".  It should look like this:
    Now launch iPhoto with the Option key held down and select that library to open.  If you get that same message close iPhoto and try the following;
    Apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • Fixed QT problem with 7.2 download, but can't start windows even in safe md

    Last night I fixed the iTunes problem with my old computer (which my iPod is linked to), and this morning when I tried to start up, I got an UNMOUNTABLEBOOTVOLUME. I tried to start safe, and it sends me back to the UBV with a STOP: 0X000000ED message. I live in the middle of nowhere Costa Rica and don't have any of my old computer(WIN XP PRO) discs to try and fix it. Apparently should have never updated my iTunes...any ideas?

    Normaly the reinstall data is on a separate part on your HD, not in Windows.
    The register is only used for Windows.
    If it doesn't work you can always try to reinstall from a DVD later.
    It does mean all your data on C:\ will be gone. If you can hook your HD on an other PC you can try to safe your work with a recover prog.

Maybe you are looking for

  • I can't open A PDF document either

    New issue.I have uninstalled and re installed 3 times new version of Ad obe 9.33.I have tried repairing rea der installation. No luck.I have tried opening with Adobe reader 9.2  no luck. I use AOL as my browser and am running on Windows XP. Why do I

  • Unable to share photo iPhone 5c to macbook air

    I am using an iPhone 5c on iOS 8.3 and a mackbook air. I am trying to clear some space on my phone and trying to take some photos off and add them to my macbook.  Ive tried to use photos, iPhoto, iTunes, photo sharing, dropbox and email but all I get

  • How can i put my music from my ipod too my itune

    pizz help me i have song on my ipod but i had to restore my computer the song are not on my itune  thank you so much for your help i love you hehe

  • Things to consider in preparing a WM questionnaire

    Hi Experts, We have got a project in WM. Now as a begining we are planning to prepare a questionnaire. Since I have just started to learn WM dont have much idea in the WM questionnaire part. Hence if anyone can provide all the valuable inputs & usefu

  • Photostream not updating on Mac Photos

    Anybody else having issue with Photostream? I had two iPhoto libraries: One I was actively using, and one I've been hanging onto to merge one day. When I updated to Photos app, I read the pages on opening multiple libraries, hoping that this was fina