Using join and batch reading in the same query

Hi,
I wonder if it is possible to use "Joining" and "batch reading" in the same query.
For example I Have
A -> 1-1 B
A -> 1-1 B
B -> 1-M C
This is the case where I have two separate 1-1 relationships to the same class B from A. Toplink 10.0.3 can manage it nicely through joining.
Now, I would like to read a set of As (with its 2 Bs) and all Cs for each B.
It seems that the following configuration does not work:
A -> 1-1 B (use joining)
A -> 1-1 B (use joining)
B -> 1-M C (Batch read)
Any help would be greatly appreciated
Tony.

James,
Would you be so kind to look at the following code?
Am I formulating it correctly to achieve my desired behavior?
Trip.class -> 1-1 PickupStop
Trip.class -> 1-1 DropoffStop
PickupStop and DropoffStop extend Stop and use same table (STOP)
Stop -> 1-M StopEvents
I would like to fetch all Trips, with their Stops and all StopEvents in 2 queries:
1. Trip joined with Stop
2. Batchread StopEvents
Code:
ReadAllQuery raq = new ReadAllQuery(Trip.class);
Expression qexp1 = new ExpressionBuilder();
Expression qexp2 = new ExpressionBuilder();
raq.addJoinedAttribute("pickupStop");
raq.addJoinedAttribute("dropoffStop");
raq.addBatchReadAttribute(qexp1.get("pickupStop").get("vStopEvents"));
raq.addBatchReadAttribute(qexp2.get("dropoffStop").get("vStopEvents"));

Similar Messages

  • TDMS: is it possible to use sender and receiver client within the same SID

    Hi all
    I have a general question about TDMS: i always read that it is possible to refresh data from a productive system/client to a test system/client, e.g. PRD100 => DEV100. But is it also possible to refresh data from one sender-client to the receiver-client inside the same system using TDMS, e.g. DEV100 => DEV200.
    i'm asking because if i start to build up a new client using tdms the first step is to build up the client using package "ERP Initial Package for Master Data & Customizing". This includes under point "data transfer" the step "lock the system" with teh following description:
    Lock System
    Activities
    During data deletion in the receiver client, the tables are dropped. All clients in the system are affected by this procedure. Consequently, all users in all clients in the receiver system must be temporarily locked while the data deletion takes place.
    The function for this activity locks only the current client. If the receiver system is a single client system, it is sufficient to execute the function. If, however, the receiver system is a multi-client system, the user in the other clients must be locked using standard means.
    Anyone has any experience with this scenario inside the same system?
    Regards
    Adrian

    You can run TDMS package on the same system and between different clients. However SAP don't recommend to run TDMS package on the same system.
    There are 2 ways to delete data in receiver system: Array delete and drop insert.
    You have to use Array Insert only which is usually very slow as it first select all the relevant entries from the tables in the target client and then drop it. So, it is slow.
    Drop insert is much optimized and fast but the same can not be used in this use case.
    That is the reason SAP don't recommend to have TDMS run in same system.

  • Using Notes and Oracle Client in the same application on Linux crashes

    This thread is copied from a thread of the same name under Database - General, since I cannot get any replies there.
    Could someone from Oracle PLEASE comment on this.
    Our application on Linux loads the Notes client libraries and then the Oracle client libraries. The application will crashes when connectimg to an Oracle server. This is because the T_* symbols in libnnz11.so get fixed up into libnotes.so rather than locally into libnnz11.so where the functions are defined.
    #10 0xb4779ea6 in T_malloc () from /opt/ibm/lotus/notes/libnotes.so
    #11 0xae7ca050 in CMP_reallocNoCopy ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #12 0xae7ccf7b in CMP_OctetStringToCMPInt ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #13 0xae7c91fd in A_X931RandomInit ()
    from /opt/oracle/product/10.2/db_1/lib/libnnz11.so
    #14 0xaec09e0d in ztcriv ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #15 0xaec09cef in ztcrbp ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #16 0xaec09ca4 in ztcr2seed ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #17 0xaec09c54 in ztcrseed3 ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #18 0xaeb40683 in ztcsh ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #19 0xaea631c4 in kpusattr ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #20 0xaea7847e in OCIAttrSet ()
    from /opt/oracle/product/10.2/db_1/lib/libclntsh.so.10.1
    #21 0xb081cb9f in COCIObject::Connect ()
    from /opt/criticalpath/common/bin/libor9i.so
    We have circumvented the problem for the time being by making sure that we load the Oracle libraries before Notes, but we cannot go with that as a long term solution.
    In my opinion the Oracle library is wrongly linked since all the T_* functions are defined in libnnz11.so. When we load Oracle first, the loader debug trace shows the correct fixups. When we load Notes first, the loader trace shows the incorrect fixups. We are using dlopen(libor9i.so, RTLD_LOCAL) for Oracle and dlopen(libnotes.so, RTLD_LOCAL) for Notes. libor9i.so has a dependency on libclntsh.so.10.1.
    An opinion would really be appreciated.
    Thanks,
    John Unsworth

    Thanks again.
    We don't have an Oracle support contract because we do not use Oracle ourselves. We supply an application that synchronises data between multiple data servers and server types, of which Oracle is one and Notes is another, as well as LDAP servers and many other types.
    Producing a full resolved binary is therefore not an option since the types of data server are configured when the apploication is installed, and then the client software for each server is loaded as required.
    The end user of the application supplies the client libraries and has a support contract for the servers, in particular Oracle and Notes in this case. So the other option is for the end user to raise a ticket using his support contract, but he is reluctant to do that since he considers that this is our problem as we supply the application that is having the problem. So we are in a dead water area. We do not want to take out a support contract just to get what is an Oracle product problem resolved. I imagine that this problem is something that has not been encountered before, because our use of the client library in conjunction with other client libraries is probably unusual.
    So that is why I am hoping, without any success so far, that someone from Oracle will pick this up.

  • Win 8 - How to use StereoMix and Headphones Mic at the same time?

    I am using Windows 8 64 bit and believe I may have an IDT driver problem.
    I need to enable StereoMix and my Headphones Mic at the same time. I know this was previously possible with windows xp and windows 7.
    What happens is If I enable either Headphones Mic (Logitech headphones with Mic) or StereoMix the other one becomes " current;ly unavailable"  I cannot get them both to work together. I can get StereoMix and the Internal Mic to work together ( both enabled at the same time) but the sound quality is bad because the internal mic picks up noises from the PC. I need to have both my headphones mic and stereo mix enabled at the same time.
    The driver I'm using is the one provided by HP with the laptop. It is called sp59620.exe
    Would another IDT driver solve the problem? Can you think of another reason this is not working?
    Here are my specs.
    System Manufacturer/Model Number HP Pavillion G7-2251dx
    OS Windows 8 64 bit
    CPU AMD A-8 4500M
    Memory 8 Gigabytes DDR3 sdram
    Graphics Card Discrete ATI Radeon HD 7640G with 2 Gigs
    Sound Card IDT Audio
    Monitor(s) Displays 17.3
    Screen Resolution 1600x900
    If you cannot help, where else should I look? i have tried Windows and Microsoft forums and no one can give me an answer.
    Thank you.

    I have tried the instructions in that video and I cant get passed the very bad feedback i get when telling my recording device to Listen.  His secone instruction from his notes here
    ["Right Click the Realtech HD audio device and set as default if its not already.
    (note you may want to turn off any powered speakers you may have to prevent feedback.)
    -Select the Recording Tab at the top of the window.
    -Select the Stereo Mix device and set it to default if its not already.
    -Right click and select Properties.
    -Select the Listen Tab at the top of the window.
    -Change the drop-down box to the entry for USB headset and check the Listen to this device checkbox.
    -click ok to dismiss the window.
    -Right click on the USB headset microphone device and select properties.
    -Select the Listen Tab at the top of the window.
    -Change the drop-down box to the entry for the Realtech HD Audio device and check the Listen to this device checkbox.
    -click ok to dismiss the window.
    So, essentially, the game audio will play through the Realtec, your mic is also set to play to the Realtec. both audio streams are now part of Stereo Mix. Stereo Mix is being listened to by your headset allowing you to hear the game and your voice.]
    ~~~~~~~~~~~~~~~~~
    Don't know about turning off any powered speakers.. the only speakers I have besides the headphones are the internal laptop speakers.  I get the same feedback if i have the headphones plugged in or not.

  • [SOLVED] How to use timidity++ and other programs at the same time?

    I have installed timidity following arch wiki instructions - I have soundfont, and I start it in /etc/rc.conf
    It works properly with tuxguitar (and tuxguitar-alsa) or kmid, but I cannot play MIDI and - for example - oggs in amarok at the same time.
    I suspect that the problem is that timidity doesn't use dmix alsa plugin I have made in my ~/.asoundrc.
    The question is: how to tell timidity to use my dmix plugin?
    Last edited by senjin (2007-11-19 19:53:50)

    but they don't define "default" there, but "!default"...
    anyway, I have already both "default" and "!default" defined exactly the same way:
    pcm.!default
    type plug
    slave.pcm "dmixer"
    pcm.default
    type plug
    slave.pcm "dmixer"
    pcm.dmixer
    type dmix
    ipc_key 1024
    slave
    pcm "hw:0,0"
    format "S32_LE"
    channels 2
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 44100
    bindings
    0 0
    1 1
    ctl.dmixer
    type hw
    card 0
    pcm.w_y_h
    type hw
    card 0
    device 0
    pcm.what_you_hear
    type plug
    ttable.0.10 1 # digital mix left
    ttable.1.11 1 # digital mix right
    slave.pcm w_y_h
    pcm.skype
    type asym
    playback.pcm "dmixer"
    capture.pcm "skype_input"
    pcm.skype_input
    type dsnoop
    ipc_key 2048
    slave
    pcm "hw:0,0"
    period_time 0
    buffer_time 0
    period_size 1024
    buffer_size 8192
    rate 44100
    and it doesn't work!
    Last edited by senjin (2007-11-18 17:49:21)

  • Is it possible to use an exact phrase and a wildcard in the same query

    I am building an address finder, and i have an option where the user can enter part or a full uk postcode. There is a ctxcat index on the address field. I am having a problem searching for part of the postcode, if i enter 'ZZ1 2*' it finds all ZZ1 and all house number 2's if i enter ' " ZZ1 2"*' it fails with an error, is this a bug or is it not possibl to use the exact phrasing and wildcard at the same time.
    If its not possible can anyone suggest another way round this query.
    Thank

    hi,
    in my table i have a column called address,
    these would contain something along the lines of these 2 records.
    10 high street anytown ZZ1 3ZZ
    3 bridge street anytown ZZ1 8ZZ
    If searching on the postcode, the user may enter ZZ1 3 at the moment this would bring back both records, the first one from the ZZ1 and the second one from the house number 3. however if ZZ1 3 is entered i am wanting to just search on the postcode, so it would only match on the first record. so i would like to put the double quotes round the "ZZ1 3" to match on the exact phrase, but then no records come back because of the two letters after the 3, this was why i am asking about the wildcards after the exact phrase ,atch, so it can match the exact phrase of 'ZZ1 3' but then allow any characters after that.
    hope this explaings my problem a bit better.

  • Can I use CS3 and CS6 both on the same Mac?

    Hello
    I just purchased the upgrade from CS3 ti CS6 web and design premium MLP TLP.
    Before to install I need to know if I can use both CS on the same Mac, to avoid problems with old files and be sure I could work.
    Also I need to know if I can install CS6 on the two Mac internal hard drives, one with Snow Leopard MacOS (10.6.8) and one with the Lion MacOS (10.7.x). In some cases I must use Snow Leopard for compatibility issue with other software.
    Thanks a lot

    Installing on two partitions uses two activations, but can be done with no issue. There is no issue on running CS3 and CS6 on the same Mac. However, there is no guarentee that running CS3 on a newer machine will be totally error free. But I think for the most part you should be ok on Snow Leopard.

  • Can I Use HDMI and Thunderbolt Outputs At The Same Time? And Mac App Store Issues

    I have a Mid-2011 Mac Mini. I am currently using the HDMI output with an HDMI to Digital Input for a dell monitor. If I wanted to have a second monitor, can I use the Thunderbolt output with a MiniDisplayport to VGA adapter? I know it may sound a little unclear, so if you need a clarification, pelase let me know.
    Also, on the same macine, I am having trouble connecting to the Mac App Store. My internet connection is working, and I've tried going into the Keychain Access and there isn't anything with a blue plus. When I go to Store --> Sign In , the sign in widnow doesn't appear.
    Thanks
    Joey

    Yes, that is exactly how to use dual monitors.
    Optionally:
    if the second monitor has DVI input, use the MiniDisplay Port to DVI adapter.
    or if it has Display Port input, then all you need is a straight MiniDisplay Port to Display Port cable.
    In Quick Links try Account if Sign In does not work.

  • Voltage and temperature read at the same time

    I'm using DAQmax to read 2 channel voltage and 1 change temperature continuelly, each of them work well, but I don't know how to make them at the same time, attached the file, thanks ahead.
    Attachments:
    Cont_Acq_Thermocouple_Samples-Int_Clk.vi ‏71 KB

    Hello,
    Thank you for contacting National Instruments.
    I modified your VI. See if it works correctly now. Keep in mind that you can select more than one channel for a particular task by selecting Browse in the channel constant and holding the control key while selecting multiple channels.
    I hope this helps!
    Matthew C
    Applications Engineer
    National Instruments
    Attachments:
    Cont_Acq_Thermocouple_Samples-Int_Clk[1]_(modified).vi ‏72 KB

  • Airport express: use internet and air tunes at the same time?

    Hi,
    I'd like to use and airport express to create a wirelss network (and so use the internet) AND stream music to my stereo with air tunes - at the same time. Is this possible? So far, I have been able to create a wireless network (and use the internet) OR use the airport express to play music. But whenever my internet works, itune can't find the base station - claiming it "can't be found on the network?"
    Can you do both at once?
    I'm connecting to an ethernet jack (I'm at a college). It's not a cable modem or DSL. Is this the problem?
    Under "music" in the utility configuration. I've selected "Enable Air tunes at the base station." I can't select "Enable Airtunes over ethernet port." When i try to change the network options to allow me to select this "ethernet port" option, I have to tell it how to "distribute IP" addresses. i don't know how to do this, and everything I've tried destroys my internet connection.
    I appreciat any help you have to offer. thanks
    1.5 GHz PowerPC G4, 12'' powerbook   Mac OS X (10.4.4)  

    solution:
    My problem ended up being specific to the network I'm using. There is evidently another router on the ethernet system that was assigning my airport express an IP address (192. ...), rather than letting the network DCHP give me a direct IP address (something like 160. ...). The 192 address made it impossible for iTunes to see my express base station, but I was getting internet, passed through this other router.
    The fix - and I'm not sure if this is totally kosher - was to manually enter a correct IP address for my base station. I got the IP address by seeing what this other router was sending my computer to get onto the internet. It gave me the correct router and a workable (160. ...) IP address. I'm not sure if I'm supposed to manually pick an IP address on the ethernet, but this one is working for the time being, and now iTunes can find my base station.

  • HP Docking (VB041AA) - Using DVI and Display Port at the same time

    Hello,
    is it supported to use the DV and the Display Port of a HP 90W Docking (VB041AA) at the same time? I use this setup with two LA2405wg and a 6450b for a couple of weeks and I encounter a couple of problems:
    - flickering and switching during bootup, same output on both displays, no output
    - hibernation resume fails, if notebook was hibernated undocked (hiberfil.sys corrupt)
    - sometimes Win7 crashs during startup with corrupt drivers
    - spooky display lockups were a display goes into standby and can't be switchec on or off. I have to pull the power cord
    Some of them are really strange (corrupt drivers, but after a restart the notebooks starts without problems). During operation I don't have any problems, no BSoDs etc. 
    Thanks for advice.

    Your notebook is an Enterprise/Business model. I would recommend posting this in the HP Enterprise Support Forums for better coverage, as this is the consumer support forums.
    You can access the enterprise support forums at the following link.
    http://goo.gl/LsnuK
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • USING TOMTOM AND IPOD FUNCTION AT THE SAME TIME

    Hi
    I plan to het tomtom application bur before I'd like to know if
    I will be able to use my iphone connected to my car player alpine for music fucntions at the same time as tomtom application
    thanks a lo for your opinion on that

    On my iPhone, I can play music using the iPod app and also use Tom Tom. The music pauses for voice directions.
    I don't have an Alpine, so I can't test that for you.

  • Installation of Adobe Acrobat and Adobe Reader on the same machine

    What is the recommendation from Adobe on having both Adobe Acrobat Pro/Std installed and Adobe Reader installed on the same machine?
    Is there an 'official' or 'recommended' statement for this?

    I think it is not recommended or supported for versions earlier than X.

  • Can I use "g" and "n" AXs at the same time for Airtunes?

    Hi, hope someone can help with this.
    I currently have a wireless "g" network made up of a Netgear DG834PN router handling DHCP and with wireless off, an AEBS "n" as a wirelss base station and 4 AXs (2 "g" and 2"n") doing extended wireless and airtunes to different rooms around the house.
    If I use the Netgear for the "g" wifi and the AEBS for an "n" network and then set up the two "g" AXs on the "g" network and the two "n" AXs on the "n" network, but all still plugged into remote speakers will all the AXs still appear in my iTunes remote speaker list?
    Also, will I still be able to control them all from the Remote app on my 1st gen iPod touch connected to the "g" network?
    I seem to have built a bit of a monster here but it works fine as is. I'd just like to know if I can get a seperate "n" network going without losing any of my airtunes functionality.
    Thanks

    If I use the Netgear for the "g" wifi and the AEBS for an "n" network and then set up the two "g" AXs on the "g" network and the two "n" AXs on the "n" network, but all still plugged into remote speakers will all the AXs still appear in my iTunes remote speaker list?
    Yes, just like any network resource they should be available.
    Also, will I still be able to control them all from the Remote app on my 1st gen iPod touch connected to the "g" network?
    The app on your iPod controls iTunes on your computer streaming the music, so yes you would be able to control them all because you are controlling iTunes.

  • Using socket and JMS protocol in the same logic for OSB

    Hi frnds,
    In my organization...the only communication protocol used is "socket" protocol. However, I want to use JMS protocol to process incoming messages. Can somebody help me figuring out how to go about it.
    Using some nice OSB blogs, I am able to create the JMS connection factory and JMS queues in weblogic. And that works fine when I select the communication protocol as JMS while creating the BS and PS.
    What should be my message flow when the communication protocol used is "socket" for both BS and PS.
    salil

    Hi,
    Make the BS as JMS and the PS as socket, in the PS's flow do a route for the BS... Then if an external call is made to the PS via socket, it will send a messages to a JMS queue...
    Hope this helps...
    Cheers,
    Vlad

Maybe you are looking for

  • ECS- PO print  ( Europe Countries)

    Hi, We noted the following issues with Purchase Order Print in Extended Classic Scenario from SRM. 1. When the default transmission medium is LOCL , system is not printing the Purchase Order after saving the Purchase Order. System is not printing eve

  • Order confomation problem

    Hi eperts, I am recreating issue in RAQ (quality system), but my ROC (order conformation)s are not flowing back, the output in R3 is generated, but in snc in sxmb_moni I donu2019t see any messages. Could you please  tell me . regards babu

  • Short cut for converting pngs with reflection to jpg?

    After reading the posts about huge image sizes, I tried the suggestion about turning off effects. But I found I liked the little reflection bit at the bottom of my images. So I left in the effect and published my site to get the swoopty png files wit

  • Integration between SD to MM, PP and FICO

    Can anyone please post some information about the integration between SD to MM, PP and FICO? I Would greatly appreciate your help. Also some questions that can be asked during an interview regarding the integration. My email address is <removed> Than

  • Lasso tool problem, using alt key, no click within 5sec causes loss of active window focus

    I have been using Photoshop since ver. 4 and have never seen this happen.  The only difference is now I'm on Windows 7 64bit.  Did not have this problem with XP.  Current version CS3 Extended. Problem: While using Lasso tool with the alt key if I do