@OrderBy in combination with addJoinedAttribute("...") doesn't work?

hi there,
@OrderBy beautifully works when the collection that has to be sorted is being fetched LAZY. But as soon as there is an attempt to join it in the query using query.addJoinedAttribute(“collectionToBeSorted”) I get no luck. Does it work as designed or I’m doing something wrong?
<code>
@OneToMany(cascade = CascadeType.ALL, mappedBy = "portalUser")
@OrderBy("position")
private List<UserConfig> config = new LinkedList<UserConfig>();
public class UserConfig implements Serializable {
@Column(name = "POSITION")
private Integer position;
Expression configJoin = builder.anyOfAllowingNone("config");
query.addJoinedAttribute(configJoin);
<code>
best regards,

The issue is that the orderBy for a query is determined by the root query, and for join-fetching the child rows need to be grouped with their parent. It still might be worthwhile entering a bug on this, as the 1-m order by may be able to be added to the query's order by.
In general I would recommend using batch reading (addBatchReadAttribute()) instead of join-fetching, as it is more efficient and will allow ordering.
James : http://www.eclipselink.org

Similar Messages

  • Cropping pictures with Viewer doesn't work.

    Cropping pictures with Viewer doesn't work.
    Selecting < or ~ 12 pictures. (picture size are Snapshots with iphone resolution) ->Viewers opens and display them. -> Russian roullette between cmd+k or the little crop button. No indication which one will process a crop or which not. -> Both result in picture selection disappear with no crop.
    Selecting > 12 pictures. (picture size are Snapshots with iphone resolution) -> Viewer opens and display them. I crop them one by one with same Russian roulllette behavior between cmd+k or the little crop button. -> Closing Viewer. -> Pictures remain like they've been before. Not cropped.

    I just tried what you described (although I can't really fathom why you would describe it as Russian roulette (with a variable number of L's). Unless you've been drinking a lot, which is what people are usually doing when they are playing Russian roulette. Your post was hard enough to decipher without that.
    Anyway, my cropping was saved each time. I think there's something wrong with your Preview.app. Have you changed anything about the autosave functions of OSX?
    I would try:
    Boot into your recovery partition (restart, hold down ⌘R until you see the Apple logo), and use Disk Utility to repair your hard drive. Repair permissions too while you're there. OS X: About OS X Recovery
    if that doesn't help, then I'd reinstall Mavericks over your current installation.

  • Wireless keyboard with Marvicks doesn't work properly

    It's not easy to post this article due it's Marvicks (?) / Apple wireless keyboard problem.
    Once I'm at home, I use my MBP like a desktop by connecting with Apple wireless keyboard/mouse. Works Great!
    Since a while, I updated to Marvicks with great experience, but my wireless keyboard doesn't react on some uppercase keys. So, what I can do is: switch to caps-lock then type the missing key or type on MBP keyboard to get "T".
    Look to here and you will find which uppercase letter doesn't work:
    (use only with right-shift combination) aAbcCdDeEfFghHiIjJkKlLmMnNoOpPqQrRsStuUvVwWxXyYzZ.
    (use only with left-shift combination) aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStuUvVwWxXyYzZ.
    Don't work letters/function:
    (right-shift combination) B, G, T
    (left-shift combination)   T
    "fn+delete"
    Further, I have "Pinyin - Simplified" language installed. During Chinese input, I need switch to normal alphabet by activate "caps lock". This is an Easy and fast way to toggle between Chinese - English input. (much convinient than Language switch via mouse clicks).
    My older OS (Leopard, S.L, Lion) works well, but Marvicks interpret differently. Once "caps lock" and I navigate with cursor keys, sometime it convert my typing into e.g.: "\[34334" (this is not the exactly right sample, due I can't simulate this at this moment), something like that. It looks like the "Escape sequences"
    This is frustrating when I write my document without looking to the display regularly.
    Please help with thanks!

    Martindorcom wrote:
    It's not easy to post this article due it's Marvicks (?) / Apple wireless keyboard problem.
    Why don't you use the MBP's internal keyboard?  Does it also not work right?
    Have you tried another external keyboard?  If not, you should do that.  If it works OK,  then you need to replace the one causing all this trouble.

  • Printing PDDoc with AFExecuteThisScript() doesn't work after an upgrade from SDK 5 to SDK8

    Hello,
    I have made an upgrade of my plug-in which was developed with the Acrobat 5 SDK. I upgrade it to Acrobat 8 SDK and my print function doesn't work anymore.
    Actually I print my document using a javascript trusted function instead the function provided by the C++ library for internal reason.
    Here below is the code used to print my document :
    char szJavaPrint[6000];
    sprintf(szJavaPrint,
    "pp = this.getPrintParams(); \r\n"
    // fill pp with parameters
    "pp.interactive = pp.constants.interactionLevel.silent; \r\n"
    "\r\n"
    "this.trustedPrint(this, pp);"
    PDDoc pdDoc = AVDocGetPDDoc(avDoc);
    AFExecuteThisScript(pdDoc, szJavaPrint, NULL);
    It was working with the Acrobat 5 SDK but the print seems to have no effect using the Acrobat 8 SDK. I know that there is a change between Acrobat 5 and 8 concerning the Character Set (currently I set the Character Set to "Not Set" in the Configuration Properties of the project) but I don't think that my problem comes from the Character Set.
    All ideas to resolve this problem are welcome.
    Kind regards,
    Joe

    See what happens if you remove the "setting of interactive to silent"...
    There is a restriction on silent printing in Acrobat, but I would not have expected that to be passed into this method - but it could have been overlooked and be a bug.
    Also, I don't recall a trustedPrint() method in Acrobat JS - check the documentation for the correct name of this function...

  • After upgrade to IOS 8.3 sync with iTunes doesn't work

    After upgrade iPhone 6, iPad Air to IOS 8.3, the sync (over wifi, as well) to iTunes doesn't work anymore.
    On iMAC iTunes, the last sync's hour and day appear different from what is recorded on mobile devices (iPhone and iPad); with IOS 8.2 and the previous iTunes' version the sync worked correctly: the dates are the same only for few seconds after syncronization, then the IOS devices show the syncronization's dates related to two weeks ago.
    Thanks

    you'll need to contact your carrier.

  • Fit the window with mouse doesn't work after new update 10.9.2

    Hi, I could fit a windows using my mouse wheel or two finger(on trackpad), doesn't work after I set up new Mavericks update(10.9.2) I'm using Haswell rMBP. Can anyone help me please? Thanks a lot. (Also, minimize with mouse wheel doesn't work too.)

    Doesn't anyone having this issue?

  • Synchronization of tasks and interaction logs with Outlook doesn't work

    Dear SAP Experts,
    I'm workink on CRM 7.0 (release 7.7.06.010).
    We are trying to make the synchronization of activities, contacts and tasks from our CRM system to Microsoft Outlook.
    It's working fine for the contacts and for the Apointment BP visit (transaction type Y020).
    But no synchronization made for others activities (interaction log Y007 and telephone calls PCAL) or BP Tasks (Y030) we created in the system.
    We just applied today SAP Note 1415263 and Groupware Integration 3.057.
    I made the settings in the CRM Calendar tab in Outlook (with synchronization from CRM to Outlook), and checked apointment, contacts and tasks.
    In customizing (CRM > Transactions > Basic settings > Define transaction types), I flagged for the following transaction types the little 'Calendar' box: Y020, Y030, Y007 and PCAL.
    In another entry (CRM > CRM Middleware and related components > Settings for client-based synchronization), I indicated the transaction type Y020 for DEFAULT_APPT_PROC_TYPE and Y030 for DEFAULT_TASK_PROC_TYPE.
    Any idea about what is missing or not already done?
    Any help will be apppreciated.
    Thanks in advance for your help,
    Kind regards,
    Grégory KREMSER
    Edited by: Grégory Kremser on Feb 3, 2010 3:13 PM

    We don't have a CAS array set up.  We want the fail over to be fully manual and only fail over to another server when mb1 is in a completely failed state and won't be back up and running withing a set time frame.  We can get everything working
    on MB3 and only Outlook doesn't work when everything is on MB2.  Outlook also doesn't work if databases are on another server and DNS is pointing Outlook to MB2 (again MB3 works fine).

  • Powerdns with MySQL doesn't work

    I recently switched from ubuntu to Arch and I love it. However I have problems with PowerDNS running with MySQL database. When I set pdns.conf to
    launch=gmysql                                                                                                           
    gmysql-host=127.0.0.1                                                                                                   
    gmysql-user=user                                                                                                 
    gmysql-password=pass                                                                                             
    gmysql-dbname=database_name 
    and restart pdns i get this error:
    Oct 22 22:43:34 Archlinux pdns[3337]: Caught an exception instantiating a backend, cleaning up
    Oct 22 22:43:34 Archlinux pdns[3337]: gmysql Connection failed: Unable to connect to database: Lost connection to MySQL server at 'reading initial communication packet', system error: 0
    Socket connection doesn't work either.
    If someone could help me out of this I would be very happy.
    Best regards!
    Jernej

    It works! Thank you! Thank you! Thank you!
    I wasted so many hours combating this...
    I owe you a beer byte! Thx again!

  • 'Alt' with + or - doesn't work

    The adjustment increment of several of the sliders is supposed to be reduced by holding the Alt key down while the + or - key. This doesn't work on my system. I've tried tested both Alt keys with both + and - keys on my keyboard. No luck. All I get is the Windows error tone. Using the Shift key to increase the adjustment increment works as it should. Any ideas out there? TIA, njb

    I consider it's working OK on Windows
    But it's platform dependent !
    To resume :
    Windows   + and -  give  small  increments , shift and + and - give   big increments
    Mac          + and - give  big increments ,  alt and + and - give small increments.
    And the Martin Evenings book is the best LR book for me, though here he's may be not clear enough.

  • RowBanding with BC4J doesn't work

    I want to use rowBanding in a table with a viewObject as its source.
    It doesn't work.
    Could anybody help me?
    TIA
    Francisco Bosch

    Francisco:
    Could you tell me what you mean by "rowBanding?" Are you referring to Swing (JClient) client or HTML client?
    Thanks.
    Sung

  • [SOLVED]Something wrong with Locale, "ÅÖÄ" doesn't work in terminal.

    If you have this kind of problem stated above in the title, or similar, here is what I did...
    Make sure you have correct locale, you'll need a UTF-8 one.
    As stated in the install guide(or beginner's guide iirc) do the following:
    Uncomment  one of the locales in "/etc/locale.gen", it doesn't have to be language pacific if you're only after using UTF-8 which provides more characters than normal ASCII.
    then run "locale-gen". Make sure to set your "/etc/locale.conf" to "LANG=en_US-UTF8" of course you can choose whatever locale you want not just "en_US-UTF-8". After that make sure to reboot, it may also work with just log-out and log-in again, but I did not reboot and neither log-out and when back in. If it still doesn't work, run "locale" and "locale-a" if the output is "C" in each column just redo what I stated above, if it still not work, then you have to consult the manual, wiki and if you don't find the problem use a search-engine and if you still don't find answer here on the forums, the people here is really helpful!
    Last edited by kalle97 (2012-10-01 17:46:16)

    " Okey I uncommented sv_SE.utf8 in /etc/locale.gen ...
    You're supposed to uncomment "sv_SV.UTF-8 UTF-8", then run locale-gen (with sudo), not "sv_SE.utf8".
    That's what I did.
    https://wiki.archlinux.org/index.php/Be … ide#Locale
    ^ Except that you shouldn't use "echo" in this case. That command works well when you're logged in as root, but for sudo, not so much. Check the file with nano and you'll see that nothing changed. For sudo, use tee.
    $ sudo tee /etc/locale.conf <<< "LANG=en_US.UTF-8"
    Note: You don't necessarily need "sv_SV" for those characters to show up. Setting a "sv_SV" locale would make programs show up in Swedish instead of English - unless that's what you want. UTF-8 locales will cover those characters just fine (provided that the font from the terminal actually contains those glyphs, of course).
    So you mean I can have en_US.UTF8 as locale but still write swedish letters? So the problem is with the font or somthing, not the locale?
    If you still have problems, post the output of:
    $ ls -l /etc/profile.d/locale.sh
    $ curl sprunge.us -F sprunge=@/etc/locale.gen
    $ curl sprunge.us -F sprunge=@/etc/locale.conf
    $ locale -a
    $ locale
    Well, I did as the guide told about locale.conf, it doesn't seem to work, even if "locale" outputs correct info now, but I'll try with restarting the X server too, just in case.....

  • GoToAndStop or Play on Frame Label with Video doesn't work?

    I have a video in a frame that corresponds with the label "eight".  i have a button on the timeline with the following code.  i've tried it both gotoAndStop and gotoAndPlay and it doesn't work.  thanks in advance for your suggestions.
    on (press) {
    gotoAndStop(eight);

    use:
    on (press) {
    gotoAndStop("eight");

  • Linked column with # sign doesn't work in report results

    I have a 2 page query situation, whereas in the 1st page I have a wildcard query to find a product number.
    This product number is set-up as link to run a report which opens in another page.
    (Type is a STRING.)
    Everything works fine unless the product number starts with the # sign.
    I can run a report using this in a non-linked page, but it doesn't work in the linked page...?
    Simple queries
    Page 1
    select
    from
    Products
    WHERE (((upper(TOP_ITEM) like upper(:P1_SEARCH)||'%')))
    and :P1_SEARCH is not null
    (Link on Top Item - :P2_Search)
    Page 2
    select
    from
    Products
    where Top_Item = :P2_Search
    (This works fine if I enter the #[Product] into the text field)
    Link doesn't work...?

    You need to escape the "#" character in the product no and generate the link's HTML code in report #1 directly within the SQL query.
    select ..
       ,'<a href="f?p=REPLACE(product_number,'#',''%23)
      ,'<a href="f?p=' || :APP_ID || ':200:' || :APP_SESSION || '::NO::P200_PRODUCT_NUMBER:' || REPLACE(product_number,'#','%23') || '"> Link</a>' product_number_link
    FROM ..
    {code}
    <i> 200 is report #2's page
    P200_PRODUCT_NUMBER is report #2's page item which is set on redirecting to that page.
    Product_number is the column name of column with '#' characters
    Change display type of product_number_link column to "standard report type"</i>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Scrollable content (pan option) with hyperlink doesn't work

    Hello, I'm trying to layout a page to scroll horizontaly with an hyperlink to a web site. I've followed the steps given in the digitalpubsuite_help.pdf (Page 51 - Last updated 1/25/2012).
    After grouping the image and the hyperlink, I cut it and I paste it into my container frame, but it's there when my container frame doesn't show me the Pan option in the folio builder (it's desactivated) and it remains with the option Web Content active.
    So, I tried to do the same thing, but using a button instead of an hyperlink, but it doesn't work either. And in this case I have the message 'content generation error: invalid URL for web content overlay' when I try to update my article.
    Could somebody help me to figure out why this is happening? What am I doing wrong? Thank you

    No, it takes this property (web content overlay) once I paste the content into the frame. I also noticed that when I group my image with the hyperlink all my group become an hyperlink. I've already reseted it as you say but it didn't work!!!!

  • The wheel of my mouses (i tried with two) doesn't work on Firefox versions after 3.6

    It started when i installed Firefox 4. The center wheel of the mouse doesn't work (can click but not shift the webpages). Now i have the 6th version of Firefox and the problem continues. I tried with another mouse (one that i tested with another computer and i know that works) but nothing.
    I unninstalled Firefox, restarted the pc, clean the registry with ccleaner and installed it again (a clean installation, not an update like the other times), but nothing again.
    Today my brother show me that login in windows with his account (instead of using mine) this problem that not happen, is only in mine (we have both admin accounts).
    My OS is Windows 7 64 bits.

    Try this one: in about:config find general.autosrcoll and put it to TRUE if there is false.
    look this one too
    https://support.mozilla.com/en-US/kb/Cannot%20scroll%20with%20mouse%20wheel%20or%20touchpad
    the mousewheel.withnokey.action session
    thank you

Maybe you are looking for

  • Special characters added in offline approval email

    Hi all, We are on SRM 5.0 SP13 ,ECS We are facing an issue with the outbound emails sent out from SRM system for offline approval for both shopping carts and PO. In the main body of the  email,some some special characters like ^A are being added at t

  • Problems with television

    I have long used an iMac G4 with an Apple Video Adapter to connect the former to a television via composite video. Never had any problems, until now. For some reason, the iMac now sees the TV as a VGA monitor (so it says in the Displays Preference Pa

  • Why wont my new version of BT BB Help download

    Hi All, I'm new to this game and thought I would chance this avenue for advise as trying the BT Helpdesk does not work. My problem is that I keep getting a message saying that a "Critical Update" for BB Help is available, but when I go through the mo

  • Network user switching from log in screen in Mavericks

    I have an iMac set up for network users, but I can't seem to figure out how to switch users from the login screen after a time out screen lock. That is, if I'm logged on to the machine, and walk away from it and it autmatically locks the screen, how

  • Phone broken, need to get contacts from backup assistant online but don't know how.

    Just broke my phone and i need to get the contacts off it, and last i checked i had backup assistant that should have been saving them. where online do i find them once i log into my verizon account?