Auto deduct 30minute for Date

I set the date in the following method and then save it but how come the date in the database is 1980-09-08 23:30:00.171? I am using hibernate and postgres database. Who cause the problem ? How to solve it?
Calendar calendar = Calendar.getInstance();
calendar.set(1980,8,9,0,0,0); System.out.println
Tue Sep 09 00:00:00 GMT+08:00 1980

I set the date in the following method and thensave
it but how come the date in the database is
1980-09-08 23:30:00.171? I am using hibernate and
postgres database. Who cause the problem ? How to
solve it?
Calendar calendar = Calendar.getInstance();
calendar.set(1980,8,9,0,0,0); System.out.println
Tue Sep 09 00:00:00 GMT+08:00 1980how do you insert and retrieve your Data ?alright, Hibernate it is... I don't know how it handles Timestamps, but I know some JDBC drivers don't set the time well when passed a Date instead of a Timestamp. Take a look at Hibernate type mappings and such, and define your column as timestamps. You may need to modify your mapped classes too...

Similar Messages

  • I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.  Will Time Capsule work with this and how?

    I like the idea of auto back-up for my new iMac, Ipad and PC Netbook, particularly if I can access all files and data stored on any device.  But I have a Conceptronic router.
    1. Will Time Capsule work with this and how?
    2. Can my printer USB be plugged in and then shared between the devices?
    3. Can I create a network and how?
    4.  What happend when a visitor logs onto my existing wireless router?
    I'm new to Macs (well a returning user having started with Mac Plus!!) and not very technical.  Any help / advice will be much appreciated.
    Ray

    The key to what you seem to want to do is to be able to get Apple's Time Capsule router to "join" the network that your Conceptronic router.  I believe that works with some third-party routers, but I've never seen a list of those that work in such a configuration and I have no experience with Conceptronic equipment.
    You might be better off with a Network-Attached Storage (NAS) device instead of a Time Capsule.

  • I received an email stating that a subscription would auto renew on x date. When I click on the provided link to change the auto-renewal setting, no subscriptions appear on the list. ???!!! Thanks in advance for your help.

    I received an email stating that a subscription would auto-renew on x date. When I clicked on the provided link to modify the settings, no subscription appeared, my list is blank.??!!! How do I cancel the subscription?

    Hi there kChaz!
    I have an article for you here that can help you manage these subscriptions:
    iTunes Store: Purchasing and managing auto-renewing subscriptions
    http://support.apple.com/kb/ht4098
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • Auto Po creation for Services from service PR

    Dear friends,
    I need to configure the same scenarion Auto PO for Service PR with item cat D and Account assignment K.
    I have done following settings.
    1) Auto PO marked in Vendor master
    2)SproMMExternal Services ManagementSource Determination and Default Valuesfor Purchasing Organizations-Auto Po generation for service requitions.
    3)PR created with Item cat --D and account assignment cat K with material group as input data.
    no material number and service number.
    4)Info record created for material group and vendor.
    5)Source assigned to PR via T code ME56
    now i am trying to create the Auto PO via ME59N but i am getting the message " no suitable PR found"
    Please suggest the action.
    Looking for your reply.
    Thanks & Regards,
    Vinod Kshirsagar
    09420693261
    Edited by: vinod kshirsagar on Jan 3, 2008 1:04 PM

    Since u have assigned source of supply--only enter PR
    Try to creat through me58
    for me59
    Check the following
    vmr --auto PO tick
    mmr/smr--auto PO tick
    info record--tick
    source of supply with fixed source..

  • Best Practise for Data Refresh & Hierarchy

    Hi,
    During a recent discussion with one of our BI user groups, the questions were raised as what the best practice are to handle the following two issues.
    Issue 1:
    If entries are posted to the prior periods in SAP R/3 (outside of the daily auto-refresh range), the current process is that the user group will ask us to conduct a manual refresh in BI for the prior periods which are effected.
    Question: Is it possible to set up a trigger in the system, so that BI knows which periods are changed and automatically refreshes data for those periods?
    Issue 2:
    If a hierarchy used in the reports is modified, there might be an adverse impact on the financial data the user group reports. The current process we have in place is to run a group of BI reports for both current year and prior year to make sure nothing is impacted, but there is limitation to this current process. What if there is no impact on current or prior year, but on the years prior to that?
    Question: What other global companies do to minimize such reporting impact, especially when they have hundreds of complex reports?
    If someone has any info on this, help me in sharing the same.
    Thanks all for your support.
    Regards,
    Murali

    Hi Srini,
    1. SAP suggestes to implement data archiving strategy  as early as possible to manage database growth .
    However pople think of archiving when they realise the  problems like large data volumes,slow system resonse time,performance issues etc...
    2. There is a proper way to implement Data Archiving . Database has to be anaylzed first for getting the top DB tables and Archiving objects.
    3. Based on the DB analysis ,Data archiving plan has to be implenemted according to data management guide.
    4. There is a minimum period known as residence time has to be completed before any data to be archived. Once the document is business completed and serverd its minimum required period in the Database ,it can be archived.
    5, Before going for data archiving there are many steps to be followed like analysis,configuration etc that you can see in details at the link below :
    http://help.sap.com/saphelp_47x200/helpdata/en/2e/9396345788c131e10000009b38f83b/frameset.htm
    let me know if this helps you .
    -Supriya
    Edited by: Supriya  Shrivastava on May 4, 2009 10:38 AM

  • Auto batch detmn for components in Process Order selects batch in Q status.

    Hi Gurus,
    We have the following issue with automatic batch determination for component batches for a Process Order:
    Say for a Process Order it requires components A,B, and C.
    The issue is with component C. if the PO requires 100 Qty of C. the system is picking batch X having 80 qty  and picking 20 from another batch Y which is still in u201CQu201D status (due to some defects it is not cleared .  for which inspection should have completed 3 days before Process Order is released).
    Also there are only these two batches for this component in MMBE.
    What I understand is system adds GR date + GR processing days ( for inspection) and release component for production after that (ie., moves to Un restricted stock). Therefore system selects this batch as per the availability check (by calculating the GR+ GR processing date) even thoe it is not cleared yet.
    Also, I want to know If this is correct procedure, how can we make system to not to include batch with Q stock (batch which is having some defects).
    Thanks,
    N.

    Hi
    Use separate Checking Group(Availability Check) in MRP-3 view for comp C with the settings in OPJJ(Availability Check+Checking rule combination) with untick incl.quality insp stock. Idea is to select the un-restricted batch stock qty during Auto Batch determination for Components
    Regards
    Brahmaji

  • Is it ok to set "auto shrink" ON for reportserver and reportserverTempDB database?

    Is it ok to set "auto shrink" ON for the reportserver and reportserverTempDB databases?
    I have read multiple 'best practice' advice articles to not se 'auto shrink' to true, and I understand the potential issue with index fragmentation, but I percieve this advice is for user created application databases and not for the ReportServer and
    reportserverTempDB databases.

    Hello Tom,
    Could you put it on - sure. Should you put it on - (My personal opinion is) never.
    There is more to it than just fragmenting indexes.
    About every half an hour or so the internal information kept about the database will be used to figure out if it should and can shrink and to about what size. This might be great for overnight when no one is using it, but the first time new extents are needed
    (since it just shrunk very small from no/light usage of reporting services) all requests will be halted until the data and log files grow. Basically you'll create a cycle of start->grow->stop->shrink->grow->shrink->grow->ad nausea. If
    you don't want to waste the resources of constantly growing and shrinking (plus all of the stopping when it happens) then don't enable it. If you don't care or it's not a big deal, go ahead and enable it but I'm not quite sure why a few MB would make a big
    difference?
    The reporting server databases are still "user" databases, they are not special system databases.
    Hope this helps.
    Sean Gallardy | Blog |
    Twitter

  • Auto run file for installati​on of HP Officejet 8500 Pro A909g Missing from driver download

    I have a HP Officejet 8500  Pro A909g. I downloaded the new Windows 8.1 64 bit driver as 8.1 would not allow the scanner to operate on the existing driver.  Printing was fine. When i went to install the wizard,  auto run file for the wizard is missing and so the installation can  not run and instal the new driver.

    Hello IanHP8500,
    Welcome to the HP Forums.
    I see that you're having an issue getting your Officejet 8500 scanning on Windows 8.1. I will do my best to help you with this issue.
    Did you upgrade to 8.1 from an older version of Windows?
    If so, with it not scanning correctly. You can try just removing the HP Solution Center from programs and features.
    Go to the bottom left corner of your screen right click on the Windows icon> go to Control Panel> Go to Programs> uninstall Solution Center if it's listed.
    Next, instead of using the printer install wizard. Download the software from this link: HP Officejet Pro Full Feature Software and Driver. Let it run through, it should prompt to " add more software". This should allow you to reinstall Solution Center.
    If you run into issues, there is something you may have to do. If you get a file missing error here, or the install hangs check your computer for the following.
    McAfee Live Safe - Disable the "Realtime Scanning".
    Check for and remove HPOINS*.dat or HPWINS*.dat. Here is a link to a post by JonW on how to do this: Re: installer setup hangs under Windows 8.1.
    Try all of this, and let me know how you make out. Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • Auto stats gathering for partitioned table

    Hi,
    We are in 10gR2 in sun solaris. We are using auto stats gathering for our DB. Here is my question,
    i know oracle gather statistics of the table, if the table changes more than 10%. How this work out for partitioned table? If the partition table changes more than 10% will last partition analyzed or the full table. We have partitioned based on insertion date.
    Appreciate your responds.
    Regards,
    Satheesh Shanmugam
    http://borndba.com

    I hope it will be only current partition which has teh stale statistics will be gathered the stastics instead of full table.
    Anil Malkai

  • Auto updation of Shipping Date on ASN Save / Publish

    Hi All,
    In the ASN Scenario, on saving / publishing the ASN the  manually entered shipping date in ASN Header gets overwritten with a system calculated date (In my case it is same as Delivery Date). We want the supplier to enter both the Shipping Date & Delivery Date manually while creating the ASN. What needs to be done for the same?
    I think the auto updation of shipping date is due to automatic scheduling. How to disable this? Is it a validation check or a Config element?
    Regards,
    Bharath

    Pravin,
    Check if these Validation Checks can resolve your issue:
    1. DLV_NO_DATETIMES
    2. DLV_ARRIVAL_IN_PAST
    3. DLV_WITH_ARRIVAL_DATE_EXISTS
    Regards,
    Bharath

  • MB5B Report for Date Wise Stock and Value

    Hi,
    I am Taking MB5B Report for Date Wise Stock and Value.
    But I have one doubt all stocks is coming or not in these report like Unrestrected Stock,Return Stock.Blocked stock,Transist stock,Restrected Stock,qty Inspection Stock.
    I have another Doubt in these report three Stock type indicaters are there like these.
    1.Storage Location / Batch Stock
    2.valuated Stock
    3.Special Stock.
    But i have one doubt what is defferent these
    1.Storage Location / Batch Stock
    2.valuated Stock

    Hi Prasad,
    Yes MB5B report consider the Unrestricted, Quality, Blocked, Transit stock and restricted stock. Not sure about Return Stock.
    If you select the Storage location/Batch stock radio button then the system will display all the possible stock from the storage location and the corresponding batch also.
    If you select Valuated stock radio button then system will show only the valuated stock not the Non-valuated stock. Because Non-valuated material type is available in SAP system will not show those stock suppose if you select the Valuated stock radio button.
    Regards
    Karthick

  • HT201250 Can I partition my external hard drive and use one partion for time machine and the other one for data that i may want to use in different computers?

    I have this doubt. I've just bought an external drive, especifically a Seagate GoFlex Desk 3 tb.
    I want to know if it is recomendable to make a partion exclusively for time machine and let another one so I can put there music, photos, videos, etc that I should need to use or copy to another computer.
    May half and half, 1.5 tb for time machine and 1.5 tb for data.
    I have an internal hard drive of 500 GB (499.25 GB) in my macbook pro.
    Any recommendation?

    As I said, yes. Be sure your Time Machine partition has at least 1 TB for backups.
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to two (2). Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.

  • Data folder can not be opened in finding " AirPort Time Capsule " The operation can not be completed because the original item for " data" does not exist .

    Hi
    I have a " AirPort Time Capsule " (firmware 7.7.3) When I try to open the data folder in "finder". Then I got the message  " The operation can not be completed because the original item for " data" does not exist". I have a lot of data and I can understand why I get this message?
    Anyone who can help? Thanks..
    Br. Bo

    Get a USB drive of 2TB or more.. assuming your TC is 2TB. Either preformatted Mac or plug into your Mac and format it standard Mac OS Extended Journaled in disk utility.
    Do a full archive of the TC. You do this using airport utility. Do not click the erase disk.. I marked in green.. just the archive.. that is to backup the internal disk to the USB disk. It is not fast.. take it that the process will go at around 40-50GB/hr.
    Once you complete the archive .. it is a direct image of the data on your TC.. you can then plug it into your computer directly.. and then try and open the files you lost.. if you cannot open them.. open disk utility and fix the permissions.
    http://osxdaily.com/2015/01/13/repair-disk-permissions-mac-os-x/
    Or try the methods apple recommends..
    OS X Yosemite: Set permissions for items on your Mac
    It is possible to fix things on the USB drive because it is locally mounted.. but you cannot fix it on TC which is network drive.

  • Why am I being charged for data when connected to wifi AND not using my phone?!

    WHY am I being charged for data that I'm not using? At times when I'm asleep AND my phone is connected to wifi?!  This happens at really specific, alternating times like 9:54 pm every day, or 12:01 am, 6:01 am and then 12:01pm and 6:01pm. When I called I was told  "maybe your wifi at home is disconnecting" or "maybe your phone is connecting to atnt or sprint". It's not possible that my phone is disconnecting from wifi every six hours on the dot and, at that exact time, I'm always using data. I find it hard to believe that I live in a HUGE city and my phone magically connects to other networks and I NEVER notice this. Verizon is full of LIARS (and maybe’s) and I'm not convinced that these data charges are a coincidence. I was told to turn off my cellular data to see if the problem resolves itself. Why should I alter my daily life when Verizon is clearly the one with the issue? I hope there's a class action lawsuit because Verizon is trying to get over on everyone! I need answers!

        Hello NotHappy101,
    I think it's quite odd that your data usage is at very specific times. We can certainly take a closer look. Please reply to my Direct Message, so we can get some additional details.
    Thanks,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't

    I have been a loyal customer for years and have a hot spot because internet options are very limited in our rural area.  I have stayed with 10G since the beginning.  Most months I don't use the 10G.  Verizon has no problem with me paying for Data I don't use.  This month my daughter comes home from College and she accidentally uses 24G.....14 over get blind sided with $140.00 in overages.  I called Verizon today......stopped in to the store today......My neighbor told me they waved charges for her one time.  Lots of charges.....But I'm am getting no help.  Not even an offer of a payment plan to help me out.  I went back just 6 months and I have over paid for 19G.....Seems like they would like to help out their loyal customers!!!!     Does anybody have any suggestions on how to deal with them?   We are not wealthy....or I would just pay this and walk away......

    There is a big misconception in what customers believe a cell carrier is obligated to do.
    You pay a set price to use up to that amount of xx data. It makes no difference if you use it to the paid limit or way under. Its like peace of mind when you don't have to worry about a data counter.
    Your daughter used the data, your plan is quite clear of what overage charges are. Why should or would Verizon wireless just forgive the charges because you are a customer? Your daughter used the data, get the money from her. That is the responsible thing to do.
    There is no "I have been a loyal customer so please remove the $120, or $250, or $2,000.00 since I did not mean to use it"
    Your electric company, or gas company or any other company does not remove valid charges. Why should Verizon wireless?
    Just pay the invoice and don't think you are being mistreated because Verizon is a business and not a charity.
    Good Luck

Maybe you are looking for