Secondary keys composite and ethical, can be done with a single field?

I'm sure that this cannot be done, and I think that know why.  But I ask the question if I missed something.

Assuming the following:

@Entity

public class {Parent}

@PrimaryKey

Private long id;

}

@Entity

public class {child

@SecondaryKey(relate = Relationship.ONE_TO_ONE)

private key of ChildKey;

}

@Persistent

public class ChildKey {}

@KeyField (1)

parentId long private;

@KeyField (2)

private String name;

}

Is it possible to transform the 'parentId' ChildKey field a relatedEntity to the Parent object?

It seems that if I do a field duplicate children like that?

@SecondaryKey (refer = Relationship.MANY_TO_ONE, relatedEntity = Parent.class)

parentId long private;

In my case the foreign key field is always the first field in the ChildKey so it is easy to find in the index to check.

I looked around, but I'm starting to think that it is impossible.

Thank you.

You are right.  You will need to reproduce the field.

-mark

Tags: Database

Similar Questions

  • When you open the bridge I get empty frames, I have to click on each one to open and see the picture, is a person tried before and what can be done to fix the problem?

    When you open the bridge I get empty frames, I have to click on each one to open and see the picture, is a person tried before and what can be done to fix the problem?

    Reset preferences, reset the default workspace, and purge the cache.

    Damaged preferences or workspaces can cause unexpected behavior in Adobe Bridge. Purge the cache can solve problems of the thumbnail display.

    • Start Adobe Bridge, and immediately press Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS down) until the dialogue box reset settings appears.

    • Select all three options - reset preferences, reset Standard Workspaces and all miniature Purge Cache - and then click OK.

  • A key panel full size can be used with I pad pro?

    A key panel full size can be used with I pad pro?

    Only if the keyboard is full-size using Bluetooth connectivity.

    I've not seen any portable keyboards, full length using Bluetooth, however.

    Most Bluetooth keyboards for tablets are made compact to be more ergonomicaaly designed with the size of the tablet.

    If you found or will find a full-size, keyboard full length that works with Bluetooth for iDevices and iPads, so this should work.

    Good luck!

  • Movies that I own on DVD and I tore and transfer to iTunes appear in my iTunes library on my iMac (El Capitan 10.11.2), and I can sync them with my iPad to watch there, but not in iTunes on my Macbook Air (El Capitan 10.11.2). Why? How?

    Films I own on DVD, and that I ripped and transfer them to iTunes appear in my library in iTunes on my iMac (El Capitan 10.11.2) movies and I can sync them with my iPad to watch here, but they do not appear in my library of films iTunes on my Macbook Air (El Capitan 10.11.2). Why? How can I fix it?

    I don't know why my post says 'Mac OS X (10.7.5) '. All my Macs run El Capitan 10.11.2.

  • Is it possible to connect with FACEBOOK Customer / Tech Support? I got my ID stolen FB and I can't connect with a living soul!

    Is it possible to connect with FACEBOOK Customer / Tech Support? I got my FB ID stolen and I can't connect with a living soul! I'm really tired of FACEBOOK and ZUCKERBERG, boasts getting its 1 billionth Member, meanwhile, its members have problems with scams, hackers, even FACEBOOK is now BANNING people for the addition of family and friends! This must be a scam any seriously! Im sick of him, he turned my whole as for social networks. If it wasn't for the fact that I have almost all of my family in Europe and around the world all in one place, I would certainly remove my account. The problem with that is if you delete your FACEBOOK PROFILE, you don't actually remove them. FB keeps them because they are the property of Facebook the minute climb you the post! This information is in the conditions of joining Facebook, but not on the registration page! that is wrong with this picture. THEY HAVE NO SUPPORT, NO CUSTOMER SUPPORT, IT IS Y HAS NO PHONE NUMBER YOU CAN CALL TO REPORT YOUR STOLEN ID AND NOW I HAVE TO ALL RUN IT AROUND TO TRY TO FIND A CYBER CRIME UNIT WHO WILL HELP ME! How can the other thing, I know if Mytechgurus.com is a legitimate business. As I've been hacked and my ID stolen (curiously enough all what's happened just as I was banned from Facebook to add a friend, I've not seen in 36 years.) They have deleted my friendship with her and banned me for 7 days)! Facebook. MyTechGurus.com have charged me $700.00 for 2 pc for serivce of 24/7 for 2 years. Granted they have always been there in the last 6 weeks to help with all the problems that the pirate had created. They've phoned while I had a technician remote access online help with verbal information as it was a huge problem. but I put it back now because a governing body here in Australia called SCAM WATCH who is supposed to tell you who is a scam and is not was good enough to tell me that they are there only to report a scam, they can not physically tell you if one of them is actually a scam or not! I was left to literally chasing my own tail! HE IS THERE ANYONE TO HELP ME AT ALL!

    Hello

    Sorry, we can not help except at the point you in the right direction.

    The Microsoft Community is a site of support of peer reviewed for Windows
    and some Microsoft Products and has absolutely no connection or influence
    with Facebook.

    Rob - SpiritX

  • I have Abobe CS2 I bought and legally own. I have an old MacBook Pro who had to have the hard drive replaced. I reinstalled the CS2 software and I can't activated with an authorization code. I need the code to use my order

    I have Abobe CS2 I bought and legally own. I have an old MacBook Pro who had to have the hard drive replaced. I reinstalled the CS2 software and I can't activated with an authorization code. I need the code to use my software. I can't afford a monthly payment with Adobe Cloud. How can I get my software activated so I can use it? Thank you.

    Please follow the steps described in this document - error: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3

    Thank you

    Bev

  • My Thunderbolt screen has only 1 thunderbolt port, how can I Garland with 1 single port?

    My Thunderbolt screen has only 1 thunderbolt port, how can I Garland with 1 single port?

    It has two ports Thunderbolt.  One is connected to the cable, the other is on the back of the screen.  If you can't find the Thunderbolt port, you will have the Mini DisplayPort in the screen version.  It has three USB ports on the back.  The Thunderbolt display has three USB ports, a FireWire port, an Ethernet port, and a Thunderbolt port on the back.

    (The Mini DisplayPort version cannot be connected in a string.)

  • I've screwed up when I recorded for firefox sync and has not finished recording and did not get the newspaper in the key. Now it says my email address is being used and I can not reregisted with my e-mail address. How can I fix?

    I am trying to sync my iphone

    Go to the following address: https://account.services.mozilla.com/

    If you DO NOT remember your password, click on the link "Forgot your password?" and it will be sent to the e-mail address you used for registration.

    Enter your e-mail address and your password. Follow the additional instructions. This should delete your account and all data synchronization associated with your account from the servers of.

    Then, set up a new account.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

  • my windows vista computer keep saying the user profile cannot be loaded.and I can not connect with my password. And I need a floppy disc or usb flashdrive.please free help to change password

    I can not connect and it says failed to connect to the profile.

    Hello

    1st thing to try is the system in safe mode restore to before the problem

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    If that does not solve it read more

    read the tutorial below

    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    When you log on a Windows Vista-based or a Windows 7 computer by using a temporary profile, you receive the following error message:

    The user profile Service has not logon. User profile cannot be loaded.

    http://support.Microsoft.com/kb/947215#letmefixit

    Your user profile was not loaded correctly! You have been logged on with a temporary profile.

    http://support.Microsoft.com/kb/947242

    If you tried to log on to Windows and received an error message telling you that your user profile is damaged, you can try to fix it. You will need to create a new profile and then copy the files from the existing to the new profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

  • Why mackbook Airdrop and bluetooth can not work with iphone 5s?

    Hello.

    I have a macbook pro late 2011 (os x El Captain) and iPhone 5s version 9.1.2

    Question 2:

    1. I turn on and correctly configured AirDrop (select all) but Airdrop macbook can't find iPhone 5s.

    Why? because my macbook before 2012?

    2 - Iphone can not connected with bluetooth macbook.

    The first macbook paired iphone / go to the bluetooth menu in mac / iphone / click on to connect to the network

    then I see this notification:

    the network is unavailable. Make sure that your access is activated.

    Please help me

    Thank you

    1. it's okay.

    To send items to an iPhone, iPad or iPod touch, you have a 2012 model or more recent Mac with OS X Yosemite or later version, except the Mac Pro (mid-2012).

    Use AirDrop to send the contents of your Mac - Apple Support

    2 iPhone Bluetooth is not designed for the transfer of files. You can send the files some other way, such as e-mail, Cloud Computing service or photo stream (for photos).

  • How PC can be used with a single creative cloud subscription?

    How many PCs can use with a single creative cloud subscription? For example I currently use Lightroom on a PC at home with 2 large screens, but use a laptop or iPad when you travel. A monthly subscription covers it all 3 or do I have 3 separate subscriptions?

    Hello

    You can activate the creative cloud on 2 machines using the same license.

    Kind regards

    Sheena

  • WHAT I WANT TO DO IS TO DELETE ALL THE CONTACTS IN MY EMAIL OF A SUDDEN MSN ACCOUNT AND I CAN'T "DON'T DO IT!"

    I spent 45 minutes yesterday deleting 1350 all my contacts from MSN/Hotmail 25 at a time so that I could import a clean list today. I logged in and they are all back! Why! ? Why can't remove it at once? Why are they back? I looked in the c:\users\YourName\AppData\Local\Microsoft/Windows Live Mail (hidden folder) and removed everything inside and yet, contacts are still in my Hotmail.

    In addition, in the forums of serching in every sense, they say to follow: Tools-> Extra-> Options-> Advanced-> maintenance-> store folder
    There's no option 'Tools' or 'Extra' on my Windows Live page or any Windows Live page that I see.

    If I can't get an answer today, I guess I'll close my account and stay with Gmail. Absolutely ridiculous! Extremely frustrating that these sync with my Outlook, which syncs with all my other accounts (phone, etc.) and keep all screwing.

    Find the file c:\users\MyName\AppData\Local\Microsoft/Windows Live Mail on my laptop in order to delete the contacts/files there - in. There is no, I have the folder is EMPTY,.

    Looked for advice on different sites and told me several times I simply had to have 'Tools-> Options-> etc', which of course does not exist or to delete files in «c:\users...» "that is of course empty.

    I looked but could not find the relationship/settings/sync between Outlook and MSN Live Mail contacts. (Does not mean it is not there, just don't know where else to look.)

    I don't know what are the sites have information, but it is not correct.
    WLMail contacts are in c:\users\MyName\AppData\Local\Microsoft\Windows Live Contacts.

    As much as I know Outlook contacts does sync not with Live contacts.

  • Why nikon view nx2 does not work with El Capitan, and what can be done to remedy this?

    Why software nikon transfer 2 no longer work after upgrading my operating system of El Capitan iMac?

    Get in touch w/Nikon tech support and ask them.

  • I wonder if this can be done with a sql instead of a code pl\sql' in SQL and PL/SQL

    delete

    @OP,

    As Frank said expected according to the sample data will be very useful.

    If I understand you correct, so what follows is the output you want (Unabridged). Is this correct?

    ECON 2555 three courses: [(ECON 1101 ou 101) or (won ECON 1101 with placement)] AND [(ECON 1102 ou 102) or (won ECON 1102 with placement)] AND [(MATH 1600-3999 ou 161-399 ou (Placement en MATHS 1700) or (Placement in MATH 1750) or (Placement in MATH 1800) or (Placement in MATH 2000 level))]

    If so the following query would start point... just to show that this is possible in SQL (no need for PL/SQL)

    There is some lack of consistency between your description and examples of data.

    You said

    Won ECON 1101 with investment coming from TVATTS_DESC = ECON:

    However sample data contains NO any row for ECON in TVATTS_DESC

    Also, I made several ASSUMPTIONS about your model and data according to the data from the sample, so this request may not work for your real cases. In any case this query should give you a good starting point (I hope).

    > film format A60 outstr col

    > with x as)

    SELECT

    AREA                 ,

    TERM_CODE_EFF,

    SSET                  ,

    SUBSET,

    SUBJ_CODE,

    CRSE_NUMB_LOW,

    CRSE_NUMB_HIGH,

    ATTS_CODE,

    TVATTS_DESC,

    -case when a.subj_code is null then substr (b.tvatts_desc, 1, instr(b.tvatts_desc,':')-1) to another a.subj_code end drvsubj_code

    Of

    SMRACAA_TEST has,

    TVATTS b

    WHERE AREA = "ECON2555."

    AND ATTS_CODE = TVATTS_CODE

    order by Tess, subset)

    , like)

    Select x.*

    ,

    case

    When the tvatts_desc is not null then ' (Placement in ': substr (tvatts_desc, instr(tvatts_desc,':') + 1) | ")' »  || ' '

    When the crse_numb_high is not null then subj_code | ' '|| crse_numb_low | '-' || crse_numb_high | ' '

    When crse_numb_high is null and row_number() over (partition of domain, Tess order by subset) = 1

    then ' ' | subj_code | ' '|| crse_numb_low | "or" | Lead (crse_numb_low) over (partition of domain, Tess order by subset)

    Another null

    end tvstr

    x where drvsubj_code is not null

    )

    Select the separate area, listagg (tvstr) Group (order by null) on outstr (partition by area)

    of y;

    OUTSTR AREA

    ---------- ------------------------------------------------------------

    ECON2555 ECON 1101 or ECON 101 1102 or 102MATH 1600-3999 MATH 162-39

    9 (positioning in MATHEMATICS 1700) (placement in MATHEMATICS 1750) (Placeme

    NT in MATHEMATICS 1800) (Placement in MATH 2000)

    I hope this helps.

  • 1. in the most visited past bad worked. 2 but a week is totally gone and I can not restorere with

    1. in the past the most visited worked poorly, often disappear, but I can restore with view, toolbar, customize, restore default set.
    2, but last week the most visited toally lost one it is imposibble to restore.

    Should be in the bookmarks bar items (bookmarks > show all bookmarks in the library window, click on the bookmarks toolbar and look for the folders of the folder/blue magnifying glass).

    See:

    How to create your own-> https://developer.mozilla.org/en/Places_query_uris

    New tabs in Firefox 13 Page will show only your frequently visited pages 9. It is a new feature and have not maybe not all the ' bells and whistles ' who wants everyone else. It will be similar to-> http://www.omgubuntu.co.uk/2012/02/how-to-try-firefoxs-new-speed-dial-page-in-ubuntu/

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

Maybe you are looking for

  • Could not open VBAI 2012 / 2013 VBAI

    Hello I installed a VBAI 2012 (trial mode), but I can't open it He is stuck on the splashScreen Operating system: Win7 64 bit I also tried the Version of 2013, but some problems... Could you please help me

  • generic calculations with changing the number of channels

    Hello I want to do some math basic with a flexible number of channels. The point is that I get an error if I specify strings that do not exist in my calculations. For example: CCh("[1]/CNV",2)-CCh("[2]/CNV",2) + CCh("[3]/CNV",2)-... I think that it s

  • Connect 70 d to TV

    Is there a procedure to connect my 70 d to a TV and view pictures (in the unit) on the TV screen?

  • I can't sign in to hotmail account today why?

    I can't sign in to hotmail account today why?

  • How can I get the height of a tab in the Panel?

    Hello I designed a tab page. In the user interface editor I can adjust the height of the Panel including the tab (tabs are on top). How much vertical space is left for the tab of the usable, i.e. excluding the tab panel - worded differently, what is