Can I combine @Id & @Temporal?

I recently upgraded my IDE and it is flagging the following field in an Entity:
@Id
@Column(name = "HitDate", nullable = false)
@Temporal(TemporalType.DATE)
private Date hitDate;The error is that there is "More than one attribute configured for field hitDate."
I probably wouldn't have chosen a date field as the id for this table, but I can't change the design at this time. This code has been working, so I assume that our Toplink Essentials setup has been fairly lenient.
I've not been able to find any examples like this, so I'm guessing it's a bad practice. However, my books and searches haven't turned up anything warning against it either. Is there a better way to configure this field that doesn't run afoul of the specification?
Thanks

The temporal type is rarely required to be set as normally dates just work. So you could probably just remove it. It does seem rather short sighted of the Spec to not allow the two together.
The temporal type is really only required when your Java type and database type do not match, i.e. Calendar or util.Date in Java (which is a Date and Time) and DATE or TIME in the database (for the few databases that have a specific DATE / TIME type).
-- James : http://www.eclipselink.org

Similar Messages

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album?

    I have photos I want to group together in one album, but can't do this because some may have the same number. How can I combine them all into one album? I was trying to move several albums onto a USB drive and it stated all other files exist at this location.  They are pictures taken at different times and have the same number I guess.

    In iPhoto albums may contain photos with the same file name - iPhoto handles that just fine
    If you are exporting them to move somewhere else use the sequential file name feature of export to give each file a unique name
    LN

  • HT4137 I have two itunes accounts, how can i combine them

    We have a IPOD and IPAD.. the music is under 1 account and all the apps are under a different account.  Can we combine them into one account so everything can be together.

    No

  • I have three different ipods with music on them and have had to replace our computer as it was in a fire. How can we combine the ipods into one ipod.

    We had to replace our computer due to a fire and lost many of the fiels which were on them. Many were music files for the ipods, we have thre. Also, do not have ID's and passwords to the iTunes store.
    How can we combine the information so that they are all in each one or at least compbine everything into one ipod?

    Just so you know the method suggested by Nelsonleee will cost your $29.95 USD, Yamipod is free.

  • A music album is listed multiple times in my library but each listing only has a few songs in it-not the full listing.  How can I combine them into one album and get rid of other duplicate listings?

    Several music albums listed in my IPhone 5 music library are listed multiple times, but each one only has a portion of the songs listed.  How can I combine them to make one album?

    First....Thank you so much for your prompt reply.  I am sorry for not getting back to you regarding your suggestion-I had computer issues that just got resolved.  Also, this is my first foray into online chat rooms so I have a lot to learn to precisely state my issue!  I did as you suggested and all the songs list the same album when I go into each song's "get info".  However, I am not sure how to edit as you suggested. When I downloaded this album originally, for some reason it broke up into several albums each with different songs from the original album.  I am trying to consolidate them back into one album in my library.  I would greatly appreciate further assistance if you can.  Also, I do not use "the cloud" to store any data and would like a good source of info on how to do this.  Thanks so much for your patience!
    SueZoo

  • HT1229 I have several iPhoto libraries. How can I combine them to make one?e new library?

    I have several iPhoto libraries. How can I combine them to make one?

    iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - 
    or the current version of Aperture can merge libaries from the current version of iPhoto
    LN

  • I seem to have at least two, and maybe four, iCloud accounts, across my iPhone, my iPad and my MacBook Pro. Can I combine them into one iCloud account?

    I seem to have at least two, and maybe four, iCloud accounts, across my iPhone, my iPad and my MacBook Pro. Can I combine them into one iCloud account? I have been able to log into what appears to be three of the four iCloud accounts I have. Two of them seem to be remarkably similar, and one appears to be only for my MacBook.I think I know which one my iPhone is backing up to, as I successfully restored from a back-up last week. The fourth iCloud account I can't access via password or security questions. Any advice would be much appreciated.
    Thanks.
    Cheers,
    Aaron
    Melbourne, Australia

    You cannot merge accounts.

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

  • I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    What is the title of the other bookmark folder that can not be deleted?
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Please report back soon.

  • TS3981 After migration files are now shared between two user accounts. How can I combine them into one account?

    After migration, from PC, files are now shared between two user accounts.I have to switch users to access files. How can I combine them into one account?

    See Pondini's  Transferring files from one User Account to another, for starters

  • We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    We have a large family, 5 kids and two adults all with iPads, iPhones, Mac Books, Servers....  How can we combine our purchases to use on all our devices.  We have two Apple ID's and sometimes buy multiple copies because of how we are limited...

    Hello Halfback71,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Frequently asked questions about Apple ID
    http://support.apple.com/kb/ht5622
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.
    Best of luck,
    Mario

  • HT204053 I have 2 Itunes accounts, one I don't use with money in the account, can I combine that money or account into the account I currently use?

    I have 2 Itunes accounts, one I don't use with money in the account, can I combine that money or account into the account I currently use?

    You can access, usually under the Apple (icon) menu in the main desktop
    window, note item with name "About this Mac" & click on that, to see more
    information about your computer, its OS X version, and other. The system
    version and build model are there. Do not post a serial number.
    If you are setting up Mail in a Mavericks OS X 10.9.x system, there often
    is access to information in the Help viewer from the main menu bar, or
    in an open mail application. If you have a Gmail or other account, that
    info is often on their home page where setup and help are located.
    The settings of each email account may vary according to their provider;
    so you would have to change your computer to accept them. An older
    link to a general look at that issue, change IMAP to POP, is covered here:
    https://discussions.apple.com/message/16770816#16770816
    While that may not answer your question, you could use the info in
    your Mac OS X system Help viewer and use its search; or maybe
    a Spotlight search to see an answer online.
    You have to learn some basic things in order to actually use these...
    and it helps to expand that so you won't have to pay for tech service
    on things you can do yourself in a few minutes, beyond easy stuff.
    Of course, you're hearing this from a guy with no ISP email, ever.
    So mine are web-mail only; & I never save email to a computer.
    PS: If you have a new Mac with an AppleCare plan, you may be able
    contact Support for help. Ask someone (for 90 days, or up to 3 years
    if the Plan was extended) there at AppleCare, for their guidance.
    http://www.apple.com/support/contact/
    Good luck & happy computing!
    edited

  • How can I combine two itunes accounts into one?

    How can I combine two itunes accounts into one?

    Items purchased from the iTunes Store are permanently associated with the account from which they were originally purchased.  Apple provides no way to change this.
    However, if you wish to put content from two accounts into a single iTunes library, you can easily do so.  Use the command File > Add File (or Folder) to Library.

  • I have two itunes accounts on one pc how can I combine them?

    My partner and I share a computer and have separate music folders with windows media player. our separate wmp contents have been copied into separate itunes folders. how can i combine them in one single itune folder?

    Open iTunes with one folder loaded and drag the other into the open iTunes window.
    (44331)

Maybe you are looking for

  • Schedule: How to Schedule a report to 1st Monday of the Month

    Trying to schedule a report to run every 1st Monday of the Month, using 3.1, what would be the best way to do it?

  • Apple TV audio, mirroring movie from iPhone

    Haven't bought the Apple TV yet. I'm not talking about airplay. When I mirror a movie playing on safari browser through the Apple TV to my tv, I was told I must keep the safari browser "open". True? In other words, the iPhone screen must stay on, whi

  • Set TIMEOUT on OCCI sql query using ?

    Is there a way to set a timeout on a sql query using OCCI ?

  • Oracle RAC help...

    Hi Friends, I have a challenge here...Would appreciate if anyone can help me.. I have to install 10.2.0.3 Oracle RAC on windows 2003 server 64 bit. My issue is now the server names and ips are set and I am going to install the RAC. But the client nee

  • Find and Save a SIS File

    I need to find a SIS file namely MapsBooster sif  for a widget i downloded from the Ovi Store . App shows as installed SIS in PC Suite but i am unable to find on phone  using x- browser and ybrowser . All i can find is MapsBooster .``dcf  file and an