One to one mapping question -- can I just map a lookup field for queries?

I have a table with a state code. I'd like to have a "virtual lookup" on the java class to a region table. I.e., this java class "studies" has a state code. I can map a one-to-one to the descriptor class that has the ref table, but I'd like to have a property in the java class pre-mapped to the "region" field in this lookup so for querying i can just use:
ReadAllQuery q = new ReadAllQuery();
q.setReferenceClass(study.class);
q.setSelectionCriteria(new ExpressionBuilder().get("Region").equal(Region));
to get all the studies for a particular region.
am I going about this wrong? or do I have to get the reference table descriptor fromt he one to one map and do something different?

well,on the way home last nite, I realized I'd had a complete brain fart. I've done this before. I just set up a 1-1 map between descriptors and then built the query like this:
q.setSelectionCriteria(new ExpressionBuilder().get("refFPO").get("FPO_NO").equal(FPO));
You can get the pointer to the "refFPO" which is the the descriptor mapped 1-1, then appended the column you wish to get.
I still went ahead and amended my class to include a read-only, non-toplink mapped attribute "FPO" which just gets the reference variable pointing to "refFPO.getFPO_NO();
I answered my own question just in case anyone wondered ....

Similar Messages

  • Why is my cursor taking holidays and choosing to not respond to my mouse or mice as I have more than one that I can  use and it refuses to respond for a period of time

    Why is my cursor taking holidays and choosing to not respond to my mouse or mice as I have more than one that I can  use and it refuses to respond for a period of time

    Hi 
    Yes you can delete the expired certificate which are showing  as it is not functional anymore and they remain as stale entries 
    You can use  below command
    Remove-ExchangeCertificate -Thumbprint "specify the value "
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com

  • I'm deaf in one ear and need a stereo-to-mono earbud so I can use my iPod and iPhone. It is not good being able to hear only one channel. Can Apple consider making such a thing for those of use who need such a thing?

    I'm deaf in one ear and need a stereo-to-mono earbud so I can use my iPod and iPhone. It is not good being able to hear only one channel. Can Apple consider making such a thing for those of use who need such a thing?

    bassvid wrote:
    Thanks...now I need to do something about the iPod.
    I'm not sure which version iPod you have, but I just checked my iPod nano (current generation) and it also has a Mono Audio setting in Settings>General>Accessibility.

  • If I have more than one I phone can I use the same apple ID for all off them?

    If I have more than one I phone can I use the same apple ID for all off them?

    Yes. You can have multiple iPhones on the same ID, up to the maximum 5 total devices. FaceTime will use the sim number for calls and you can configure each phone separately, or configure one and then back it up to iTunes and them restore the image to the others.

  • How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs.

    How can I just disable "navigation toolbar" completely for the App Tabs? I don't want to disable this for other normal tabs. This is important as otherwise while I am in the app tab, i mistakenly start browsing from that tab and meaning of the app tab is completely lost...

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

  • Does anyone knows where i can buy Just Mobile Lazy Couch Stand for iPad and MacBook Pro in Amsterdam?

    Does anyone knows where i can buy Just Mobile Lazy Couch Stand for iPad and MacBook Pro in Amsterdam?
    thanks!

    You went from the wrong direction.  Start with Nikon website and the WU-1a adapter.  click on the download at the App store....
    http://www.nikonusa.com/en/Nikon-Products/Product/Wireless/27081/WU-1a-Wireless- Mobile-Adapter.html
    It will take you to the App.

  • I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    I want to upgrade my old airport express to the new express. Can I just switch out the old for the new or must I delete the old network first and start from scratch with the new express?

    It is not necessary to delete your old wireless networks first, but doing so may eliminate confusion. If you wish to do that, open System Preferences > Network, and select Wi-Fi from the left column. Click the Advanced... button, then select your old wireless networks and delete them with the "–" (minus) button. Make sure the "Remember networks this computer has joined" remains checked.
    OK then Apply.
    This prevents your Mac from searching for your previous network which will no longer exist.
    A new Express creates an open wireless network that you must select before you can configure it. It appears in your Wi-Fi menu like this:
    Select it. AirPort Utility will load and walk you through its configuration.
    Edit: If you are really using OS X 10.5.1 as shown in your profile, the above screenshot is not applicable. Instead, select the network called "Apple network nnnnnn" and then launch AirPort Utility.

  • ICloud   Restoring my ipod question. I just restored my ipod touch for the first time because it was unreadable in itunes, and I had manually backed up my ipod to iCloud prior. The ipod is restored, but cloud not downloading my messages, pictures?

    iCloud + Restoring my ipod question.
    I just restored my ipod touch for the first time because it was unreadable in itunes, and I had manually backed up my ipod to iCloud prior.
    The ipod is restored, but cloud not downloading any of my messages and pictures, and the other files that iCloud claims to back up?
    How do I put these on my restored itouch?
    Thanks everyone

    What messages? What app? The backup includes Messages (iMessage, SMS, and MMS),
    What photos? How did the photos get on the iPod
    The backup only includes photos in the iPod's camera roll album.

  • Hi I need to change password but forgotten answer to one of question can help please?

    Hi I am trying to change my password on I cloud but have forgotten one of the answer to a question can somebody help please?

    1)  Apple ID: All about Apple ID security questions
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security

  • Mapping the IDOC fields for Inbound PO

    Hi,
    I am trying to map the fields for PO for IDOC type ORDER05, but unable to do so for the following IDOC fields in segments.
    Document Date
    Vendor
    Account Assignment Category
    Delivery Date
    Requirement No.
    Requisitioner
    Purchase Requisition
    Preq Item No.
    Outline Agreement
    Outline Agreement No.
    What fields in the IDOC match these in SAP R/3.
    Thanks,
    Randy.

    Hi Did you manage to get this IDoc working? I'm having the same problem with the mapping and the documentation is really bad.
    Thanks.

  • Scripts to update Mapping files & Lookup files for OBIA 7.9.6.2/7.9.6.3

    Hi I am looking to know what are the mandatory mapping files & Lookup files that required to be mapped for OBIA Financial Analytics for Oracle EBS R12.1.3 source system while implementing OBIA
    Is their any document that list outs the need/importance about these files while configuring the same
    Thanks & Regards,
    VJ

    Hi gurus,
    any body have an idea how to reconcile the OBIA 7.9.6.2 mapping files and Lookup files data are in line to Source Oracle EBS R12.1.3 system.
    Regards,
    VJ

  • I just bought the new Iphone4s. My old phone was synced to my car. How do I get rid of that one so I can use my hands free blue tooth for my Nissan Rogue 2010

    I just bought the Iphone4s. My old phone is syncked with my hands free bluetooth. How do I get rid of my old phone so I can sync my new phone. My old phone wasn't an Iphone. My car is a 2010 Nissan Rogue? The car manual isn't very helpful.

    You need to unpair the old phone from your car. The car manual may not be helpful, but unless someone here has the same car we will be even less helpful. One tip, however; make sure the new phone has a different name than the old phone.

  • In my household we have multiple users with different apple id's on one computer. Can we just change the login to sync our devices to the computer?

    We have multiple apple id's for each member of the family and we all use one computer. Will this cause problems when we all want to sync to the computer, after we authorize each apple id to the computer?

    Each user should have a separate user account on the computer. That will result in each user having a unique iTunes library and as long as each person logs into the computer with their own account, it will avoid unintentional cross synching and deletion of data.

  • How does one create LOV Map between 2 fields for custom lookup mapping

    Hi there
    In Internet Expenses, Expense Report Line Detail we have two unrelated fields; namely Expense Location & Tax Code.
    The requirement is to map a default tax code to locations; basically when a user enters Expense Location then the mapped tax code value should default into field Tax Code.
    The location-tax code mapping is stored in a custom lookup (FND_LOOKUP_VALUES).
    My question is how does one go about implementing this?  For example is it possbile to create a new (hidden) LOV based on the lookup mapping & then create a Personalization LOV Mapping between the 3 LOV...  Or is it necessary to modify the Tax Code drop down Message Choice in JDeveloper?  Of course details are appreciated!
    FYI below is the relevant Personalization Structure from "Personalize Stack Layout: (NormalDetails)".
    Message Lov Input: Expense Location
    - Lov Mappings
    -- Lov Map: (lovMap1)
    -- Lov Map: (lovMap2)
    -- Lov Map: (lovMap3)
    - Message Text Input: Expense Location
    - Message Styled Text: Transaction Location
    - Message Text Input: Merchant Name Yes
    - Message Styled Text: Description
    - Message Check Box: Original Receipt Missing Yes
    - Message Choice: Tax Code
    - Message Check Box: Amount Includes Tax
    - Message Choice: Tax Code
    Many thanks
    G

    Hello all
    The correct & supported method is this:
    Extend the location LOV in JDeveloper & add a "default tax" attribute, this could be derived from a new location DFF storing the default tax code for each location. Now simply create a location Personalization LOV Map which takes this new location lov tax attribute & target it to the tax message choice field.
    That's my 2c worth anyway, so please give comment if you feel there is a better way.
    There is just one more little problem however... The requirement has changed! Now we require the tax code to default according to not one location field, but other fields too. For example if the user selects Expense Type of Beverage & Location of Netherlands then Tax Code should be NL19%, for Expense Type of Hotel then it should be NL6%; if the user ticks "Missing Receipt" field then it should over ride all others & set the code to NL0%.
    Any ideas?
    Many thanks
    G
    Edited by: user13363208 on 11-Aug-2010 06:51

  • I purchased an audio CD that I then imported into iTunes - I can find (and play) the new music from iTunes - however when I try and load it on my phone I can not see the new album as one that I can select in the music listings available for download.

    It seems that recent additions to my iTunes library are not available for download to my (or my son's) iphone - other albums by the same artist are available.
    Any help is appreciated...

    Audiobooks (and ringtones) are currently a one-time only download from the store. If you don't have it on a backup of your downloads then you can try contacting iTunes support and see if they will grant you a re-download : 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

Maybe you are looking for

  • How to delete the record in the file present in the application server?

    Hi,   I have two questions.   i) How can I delete a record based on some condition in the recordx in the file that is present in the application server?   ii) How can I lock the users whiel one user is accessing the file on the application server? Th

  • Error while executing a report : Time limit exceeded

    Hello Experts, i have executed a report  and it took long time and finally throw an error saying that time limit is exceeded , please suggest how to resolve the problem Thanks in Advance Nitya

  • Warholizing a photo

    Years ago, I taught myself how to Warholize a portrait photo--make it look like Warhol's portraits of Marilyn and Liz--on Photoshop. My question: Can Aperture do this? If so, how?

  • Local pkg upload - "Component's architecture is different from destination

    machine" is the Publish Status message I get when trying to upload an x86 package in the x86 channel. This happens with multiple packages that have been running on systems for months but UCE doesn't like any of them. Any ideas?

  • IC Booking - Same Account Issue

    Hi, My company is using the same account for both Inter company AR & AP. I tried configuring the BR for IC Booking but it did not work. I am using the seller wins scenario and posting the Debit to a generic Difference account and Credit to this same