(EJB-3) Can a many-to-one/one-to-may join field be part of a composite key?

I've been setting up my first set of EJB-3 entites and I'm hitting an error I can't see the reason for. I don't have the code with me here- I'll add it to the thread tomorrow if there isn't a simple answer in the meantime.
Two entity classes, Invoice and VatTotal. Invoice has a synthetic key, VatTotal is keyed on invoive id and vat code. VatTotals are children of the Invoice.
So I code a Key class for the VatTotal entity, with Invoice and VatCode fields (VatCode is just a String). I define a ManyToOne property called invoice in VatCode and mark it @Id and a OneToMany field in Invoice called totals with type List<VatCode>
Netbeans seems to accept it, but when I try and create the EntityManagerFactory (using Hibernate) it rejects the mappedBy=invoice on the OneToMany in Invoice.
Does Hibernate accept ManyToOne properties as part of a composite key? Is there a problem using such a property in a OneToMany? Maybe I've done something dumb, but I can't see it.

I don't think so. And I've seen some anomolies in the print preview (parts of messages getting cut off or munged up).

Similar Messages

  • How many times can the photoshop code be used?  Like can I download it on one computer then later download it on a different computer?

    Basically the title explains my question.  How many times can the photos hop code be used?  Like can I download it on one computer then later download it on a different computer?

    You're allowed two installations/registrations. Anything above that requires deregistration on one of those computers.
    Take note that if this is Photoshop CC, it's as easy as signing out on a system; there aren't any serial numbers involved as it's all tied to your Adobe ID.

  • Can I use iCloud to since many users to one account for my business and have me as a administrator to oversee and change peoples calendars?

    Can I use iCloud to since many users to one account for my business and have me as a administrator to oversee and change my employees calendars and contacts??

    Go to System Preferences and click Sign Out, select Delete at all the prompts, then sign back in with the changed ID?   (Your iCloud data will disappear from your Mac when you sign out and choose Delete, but will still be in iCloud.  Provided you are signing back into the same account your data will reappear on your Mac when you sign back in.)

  • On how many computer can I install Premiere Elements (one licens)

    On how many computer can I install Premiere Elements (one licens)

    number
    What are the computer operating systems involved? Are you installing from installation files (from online download purchase) or from installation disc
    (from purchase in boxed packaging)? Answers to those questions would probably get you the best possible answer to your question.
    If installation files.....
    You are not going to be able to install a Premiere Elements Windows purchased serial number on a Mac computer or a Premiere Elements Mac
    purchased serial number on a Windows computer.
    If installation discs...
    Box packaging typically comes with two installation discs....one for Windows and one for Mac. In this type of situation, typically you use one
    serial number for them both. If that is the case, then the following applies...
    Adobe allows you to use the same purchased activated serial number on no more than 2 of your computers. And, you do not use them at the same time.
    If you are dealing with two computers with the same operating system, then you should be able to use that same purchased serial number for that operating system on no more than 2 of your computers. Again, you do not use them at the same time.
    Please let us know if any questions or need clarification.
    Thanks.
    ATR

  • HT1415 You can move the rental between devices as many times as you wish during the rental period. However, the movie can only be played on one device at a time. If you rent a movie on an iPhone, iPad, iPod touch, or Apple TV, it is not transferable to an

    You can move the rental between devices as many times as you wish during the rental period. However, the movie can only be played on one device at a time. If you rent a movie on an iPhone, iPad, iPod touch, or Apple TV, it is not transferable to any other device and you must watch it on that device.
    This is a confusing statement. Can really move the rental between devices or not???  

    If you originally downloaded it to a computer, yes. If you originally downloaded it to an iOS device, probably not; if you want to try anyway, use the Transfer Purchases function in iTunes.
    (85739)

  • How many devices can I have connected to one iTunes account?

    How many devices can I have connected to one iTunes account?

    If you mean authorized computers, five.
    If you mean devices associated with iTunes Match or automatic downloads, ten.
    If you mean devices synced with a single iTunes library, there’s no limit.
    (108873)

  • When ordering enlarged photos from iPhoto, must I purchase them one at a time and pay a shipping fee for each and very one of them.  Sort of a ripoff but I can't figure how to purchase many and pay one shipping fee.

    When ordering enlarged photos from iPhoto, must I purchase them one at a time and pay a shipping fee for each and very one of them.  Sort of a ripoff but I can't figure how to purchase many and pay one shipping fee.

    You may have better luck posting in the iPhoto forum if no one on this forum is able to assist. I'm sure you are doing something wrong though.

  • HT204411 i am trying to purchase many songs at one time. i have added all songs to wish list , now to purchase it will only let me  do one at a time  please advise how i can purchase more than one at a time

    i am trying to purchase many songs at one time. i have added all songs to wish list , now to purchase it will only let me  do one at a time  please advise how i can purchase more than one at a time

    There used to be a 'buy all' button on the wish list screen but for some reason that has been removed from the current version of iTunes so you will need to buy each item individually. You can try leaving feedback for Apple and maybe it'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html

  • Can I able to install many instances in one database. If yes please let me

    Hi,
    Can I able to install many instances in one database. If yes please let me how to do in Oracle 10g and *9i*.
    Thanks,
    Senthilnathan.

    Can you clarify what you trying to accomplish please? An instance consists of the memory structures, while a database consists of the memory structures and data files. Hence a RAC is a single database, with a instance per node (since each node will have the memory structures but all nodes access the same, single database).
    If you are referring to multiple schemas or applications inside the same database then yes, that is perfectly fine and done generally.

  • I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box , as I can see on my classroom book and in many tutorial.any one can help please

    I m trying to import some picture from my iphoto library but element 12 don't show me the iphoto dialog box ,where i choose what i want to import,  as I can see on my classroom book and in many tutorial.any one can help please ? thanks

    I have the same problem... but the photo library is neither on my iPhone or my Computer!! Please help.. its taking too much space.

  • By default how many plan types one can create in Hyperion planning applicat

    By default how many plan types one can create in Hyperion planning application?

    Hi,
    By Default,We can create 3 plan types in Hyperion planning application.

  • How can I open many files in one window?

    how can I open many files in one window?

    Well when i do that, the fonts kinda stays whereas the size of the poster shrinks.
    But thanks for the help

  • Can we run many Tcodes in one LSMW one after another

    Can we run many Tcodes in one LSMW ......or can we prepare an LSMW which can execute other 10 LSMWs automatically....?

    There is no option of "Again recording " ...there is only option of repeat recording and it only repeats the same recording and no other tcode can be recorded.
    My question is if we have one project , one subproject and one object and then we run the LSMW for only one time ....can it update the records in 10 different Tcodes.
    If it is possible then can you please explain in detail pointing to the option what to select and where that option is found .

  • How can I treat many tables with one handler(?) ?

    Hello~
    I am applying BDB to my embbeded system not rich in resource.
    Some *.db files are called frequently.
    But, Opening a *.db file [db_create(&dbp, NULL, 0) AND dbp->open] takes a long time in BDB
    So, I loaded this functions onto a booting module to call opening functions just one time.
    And all D/B handlers(?) are loaded in all run time
    But, a D/B handler takes about 360Kbytes. And there are too many *.db files(10) where a table is
    How can I treat many tables with one handler(?) ?
    Or
    If you have the most efficient way to call openning functions just one time, please tell me
    Thank you

    Hello,
    Opening the database handles is expensive due to
    opening a file on disk. Is it possible for the application
    to use in-memory dbs? Otherwise is there a way for the application
    to cache the DB handles and reduce the overhead associated with
    opening and closing them?
    Thank you,
    Sandra

  • I have many emails in file, is there a way I can delete them all at one time?

    Is there any way I can delete my mail all at one time instead of having to check each one first.

    You can delete them all at one time but unfortunately you have to check them first. Then in Trash you can delete all.

Maybe you are looking for

  • OfficeJet Pro 8600 and OfficeJet Pro 8630 Tray 2 missing

    Hi All, Today we have released the software patch for Tray 2 missing for Officejet 8600 and Officejet 8630 all in one printer Go to www.hp.com>> Click on Support>> Download drivers Type in your product model no Eg Officejet 8600, Officejet 8630......

  • Service For Objects functionality (SDV transaction)

    Hello experts, Some users are getting an authorization error while trying to display an image from t-code FBL1N (services for objects). After identifying the reason of this issue with NSU53, the simple fix is to provide access to the user to transact

  • Survey / Rubric with radio buttons?!

    I'd like to create a survey or grading rubric.  To do this, I'd like it to be interactive or clickable.  For example, there would be 10 buttons, and I would click one.  Then, the value from that would be added to a cell (or column).  Ideally, I would

  • RFC for PO Deatals

    Hi Guys, I have a requirement to get PO details from SAP to PHP system by entering the PO number in PHP system,  can any one tell me which RFC is suitable for this? Thanks in Advance Best Regards Venki

  • Different behavior for index

    Hi.   I have the table inl_allocations with following index: CREATE INDEX inl_allocations_n1 ON inl_allocations   ( ship_header_id                  ASC,     adjustment_num                  ASC,     ship_line_id                    ASC ) When running q