Date Field Changed After Persistence

When persisting an object the date field is changed from it's original
millisecond value to a new value.
i.e.
Before persist fastTime: long = 1065003043301 (java.util.Date)
After persist fastTime: long = 1065003028240
(com.solarmetric.kodo.util.ProxyDate)
It is not consistent. Sometimes it correct, other times it's not.
So my equal() method fails as the member variable Timestamp is different. I
need to filter on this value and for it to be 'exactly' the same.
How?
Config
KODO 2.5.3,
Database MYSQL, Default Table type MYISAM, same on InnoDB
default .JDO file for persistent object
defaults in kofo.properties

Graham-
Unfortunately, SQLServer is only able to store dates to a 3 millisecond
precision, which means that if your date's milliseconds part is not
divisible by 3, then you will get back a different date that you
entered.
Two possible solutions:
1. Subclass the SQL Server dictionary to store all date fields as
longs. This will require that the date field on the server is also a
BIGINT.
2. Manually round the milliseconds part of your date to the nearest 3
milliseconds.
In article <ble9lc$dne$[email protected]>, Graham Cruickshanks wrote:
When persisting an object the date field is changed from it's original
millisecond value to a new value.
i.e.
Before persist fastTime: long = 1065003043301 (java.util.Date)
After persist fastTime: long = 1065003028240
(com.solarmetric.kodo.util.ProxyDate)
It is not consistent. Sometimes it correct, other times it's not.
So my equal() method fails as the member variable Timestamp is different. I
need to filter on this value and for it to be 'exactly' the same.
How?
Config
KODO 2.5.3,
Database MYSQL, Default Table type MYISAM, same on InnoDB
default .JDO file for persistent object
defaults in kofo.properties--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Transactional Data Field Change

    Hi SDNites,
    I am trying to identify all the field changes (Transactional Data) which has been done into CRM for a specific transaction (Ex: Service request). Could you please suggest any BADI or any function module which will provide me the same.
    Regards,
    Abhi

    Deletion of fields is not possible in ODS, Cube with data till the version 3.5, BI 7 onwards the swapping deletion is possible with the feature Remodeling.
    You can add the fields when datatarget is with data but deletion is not possible.
    WHat you can do is..
    !, Stop the further data loading by disconnecting the map from tranfer strucute level and remove the field from extractor=> considering performance and memory.
    2. create a copy of ods1..to ods2, create export data source from ods1, create update rule, mapping and do the data loading to ods2, Delete th ods 1 data, remove the field and again created export data source from ods 1 to 2 and load the data.

  • SMSY Data Source changes after performing Managed System Config

    Hello everyone,
    I am working with Solman EHP1 SPS26.  I have setup up my central SLD to push system data to my Solman local SLD which is then retrieved from Landscape Fetch to SMSY.  Initially, everything seemed to be working and all data sources reported SLD.
    However, once I performed the Managed System Confirguration wizard for a particular technical system, that systems data source would change to TMS/RFC under SMSY.  It's actually not even that consistent.  For example, the server says source is RFC, the product system says TMS/RFC and some of the product instances still say SLD.
    Is this normal for this to happen after connecting a managed system?  Will these systems still be updated via the SLD considering SMSY_SETUP is configured to use the SLD?
    Anyone's help would be greatly appreciated.
    Alex

    Hello,
    If you notice in SMSY this is not an editable field.
    It is reporting the last datasource used.
    Thefore when you made a change via managed system setup that became the last data source used.
    So yes it is normal to see this change.
    If you have configured the datasource to be the SLD, it should continue to update these systems.
    Where you need to watch out is making manual changes in SMSY, as the SLD can view this as a different system to the SID it knows and will generate systems with known SIDs appended with a suffix variable to distinguish it, as the SLD will not overwrite manual changes, and will create new systems instead.
    But the field in SMSY reflects the last data source used.
    Hope this helps some.
    Regards,
    Paul

  • Data has changed after passing through FIFO?

    Dear experts,
    I am currently working on a digital triangular shaping using the 7966R FPGA + 5734 AI. I am using LabView 2012 SP1.
    Some days ago I have encountered a problem with my FIFOs that I have not been able to solve since. I'd be glad if somebody could point out a solution/ my error.
    Short description:
    I am writing U16 variables between ~32700-32800 to a U16 configured FIFO. The FIFO output does not coincide with the data I have been writing to the FIFO but is rather bit-shifted or something is added. This problem does not occure if I execute the VI on the dev. PC with simulated input.
    What I have done so far:
    I am reading all 4 channels of the 5734 inside a SCTL. The data is stored in 4 feedback nodes I am applying a triangular shaping to channel 0 and 1 by using 4 FIFOs that have been prefilled with a predefined number of zeros to serve as buffers. So it's something like (FB = Feedback node):
    A I/O 1  --> FB --> FIFO 1 --> FB --> FIFO 2 --> FB --> Do something
    A I/O 2  --> FB --> FIFO 3 --> FB --> FIFO 4 --> FB --> Do something
    This code shows NO weird behaviour and works as expected.
    The Problem:
    To reduce the amount of FIFOs needed I then decided to interleave the data and to use only 2 FIFOs instead of 4. You can see the code in the attachment. As you can see I have not really changed anything to the code structure in general.
    The input to the FIFO is a U16. All FIFOs are configured to store U16 data.
    The data that I am writing to the FIFO can be seen in channel 0 of the output attachment.
    The output after passing through the two FIFOs can be seen in channel 2 of the same picture.
    The output after passing through the first FIFO (times 2) can be seen in channel 3 of the picture.
    It looks like the output is bit-shifted and truncated as it enters Buffer 1. Yet the difference between the input and output is not exactly a factor of 2. I also considered the possibility that the FIFO adds both write operations (CH0 + CH1) but that also does not account for the value of the output.
    The FIFOs are all operating normally, i.e. none throws a timeout. I also tried several different orders of reading/writing to the FIFOs and different ways of ensuring this order (i.e. case strucutres, flat and stacked sequence). The FIFOs are also large enough to store the amount of data buffered no matter if I write or read first.
    Thank you very much,
    Bjorn
    Attachments:
    FPGA-code.png ‏61 KB
    FPGA-output.png ‏45 KB

    During the last couple of days I tried the following:
    1. Running the FPGA code on the development PC with simulated I/O. The behavior was normal, i.e. like I've intended the code to perform.
    2. I tested the code on the development PC with the square and sine wave generation VI as 'simulated' I/O. The code performed normal.
    3. I replaced the FIFOs with queues and ran my logic on the dev. PC. The logic performed totally normal.
    4. Right now the code is compiling with constants as inputs like you suggested...
    I am currently trying to get LabView 2013 on the development machine. It seems like my last real hope is that the issue is a bug in the XILINX 13.4 compiler tools and that the 14.4 tools will just make it disappear...
    Nevertheless I am still open for suggestions. Some additional info about my FIFOs of concerne:
    Buffer 1 and 2:
    - Type: Target Scoped
    - Elements Requested: 1023
    - Implementation: Block Memory
    - Control Logic: Target Optimal
    - Data Type: U16
    - Arbitrate for Read: Never Arbitrate
    - No. Elements Per Read: 1
    - Arbitrate for Write: Never Arbitrate
    - No. Elements Per Write: 1
    The inputs from the NI 5734 are U16 so I am wirering the right data type to the FIFOs. I also don't have any coercion dots within my FPGA VI. And so far it has only occured after the VI has been compiled onto the FPGA. Could some of the FIFOs/block memory be corrupted because we have written stuff onto the FPGA too often?

  • Invoice date field change- MIRO screen

    HI all,
    i want to check the field selection settings for invoice date (INVFO-bldat) on MIRO.
    the user is getting default value as today's date. He wants a blank date
    Please help

    Do you mean " posting date " get default by today date? because in my system the posting date that getting default today date, not invoice date.
    And event if the users get today date, he/she can still change it.so its not a big problem.
    Blank or today's date--> user still need to fill in /write the posting date.

  • PR Field change after release completion

    Hi,
    We have a PR release strategy with Doc type and $ as 2 charesterestics. I have assigned X - Block and 2- RFQ/purchase order as release Indicators. 2 - has FZ01 and "Blank" as changeabil.
    The question is, User want to lock "Cost Center" field in accoun assignment tab. Or they want to reverse release strategy in case of "Cost Center" change.
    There is no field in FZ01 to control.(We does not have any WorkFlow)
    Any idea will be appreciated.
    Thanks in advance,
    Vamsi.

    Hi
    Create a release indicator with the released for PO, RFQ checked and changeability as 1=cannot be changed and assign it to ur release strategy after rlease.
    If u want a new release strategy after costcenter change then cost centre should be one of the characteristics it the release strategy.
    The first option would be the best one for you.
    Check and revert
    Reg
    Raja

  • Iphoto: unwanted date/time change after import

    Two problems:
    First Problem: In October, 2012, scanned a photo into my MacMini in JPEG format.  Creation date 10.12.2012 , Modified date 10.12.2012.  This is OK.  
    This is an old family Christmas photo, so I use "touch -t" command through the Terminal application to change Creation and Modified dates to 12.25.1957 at 2PM (1400.00 hours).  Use Finder/Get Info to check date of JPEG file and confirm change of date and time.
    Then, import JPEG file into iPhoto:  iPhoto shows date of JPEG file as 12.25.1957, but time is now 3:34.02PM (1534.02 hours).  Use File/View in Finder to look at iPhoto file and discover that date and time are changed to 12/31/1969 at 7:00 PM (1900.00 hours).  What's going on here?
    Second Problem:  Received a JPEG file by email and moved it to the Desktop.   Creation date and Modifed date of the file are the date and time they were downloaded from email onto my MacMini, which is today: 1/30/2012 at 11:30AM.   Use "touch -t" command through Terminal application to change Creation and Modified dates and times to 10/20/2012 at 6PM (which is when the picture was actually taken). Comfirm change through use of Finder/Get Info  capability. 
    Import JPEG file into iPhoto and time gets changed to 7:34PM (date stays 10/20/2012).   Look at File/Reveal in Finder and the dates are still the date and time of the download from email onto my computer.  What gives?
    Iphoto version is 9.4.2.  All system software up-to-date.

    That command is the adjust time/date command - not the batch change command
    Adjust T/D takes a group of selected photos and applies a constant delta to them thereby correcting for camera setting errors or time zone issues
    Also note that this is a user to user support forum not a path to Apple - it is a great plce for questions about how iPhoto works - it is an extremely poor place to make requests for changes since there is no one here who can do that.
    LN

  • Javascript , date Field change doesn't work

    I want to display the expiration date automatically as soon as I selected a date of issue but it does not work..
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader"><nobr>StartDate</nobr></H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="StartDate" __designer:bind="
    {ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@StartDate')}"/>
    <Sha
    rePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="StartDate" ControlMode="New"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader"><nobr>EndDate</nobr></H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="New" FieldName="EndDate" __designer:bind="
    {ddwrt:DataBind('i',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@EndDate')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="EndDate" ControlMode="New"/>
    </td>
    </tr>
    <script type="text/javascript" src="../../JQuery/jquery.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    alert (&quot;Test&quot;);
       $(&apos;#ff2&apos;).change(function(){
       alert (&quot;Test&quot;);
           var startVal = $(this).val();
    var month = startVal.getMonth();
    var day = startVal.getDate();
    var year = startVal.getFullYear();
    year = year  + 1;
    endVal= day+&apos;/&apos;+&apos;month&apos;+&apos;/&apos;+&apos;Year&apos;;
           $(&apos;#ff3&apos;).val(endVal);
    </script>

    Hi,
    Please add the following code into the new form page. You can also add a content editor web part into the new form page and add the code into the web part.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("input[title='Start Date']").blur(function () {
    var startVal = $(this).val();
    var startDate = new Date(startVal);
    var month = startDate.getMonth() + 1;
    var day = startDate.getDate();
    var year = startDate.getFullYear() + 1;
    $("input[title='End Date']").val(month + "/" + day + "/" + year);
    </script>
    Or here is a thread talk about the similar issue for your reference:
    http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_27765240.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Schedule line date changes after each MRP run

    Dear Experts,
    Clarification needed on how the system plans the MM schedule lines.
    Setting: Start in the past not allowed.
                  3 days for processing of order
    The issue is after each MRP run the system is moving the schedule line to the current date + 3 days for processing + the planned delivery time.
    If the schedule line is not firmed, after each MRP run ( which happens everyday) the system is moving the schedule line and then giving an alert saying the " order has to be rescheduled to the previous day"
    on the second day after the mrp run the system moves the schedule line again by one more day and gives the rescheduling date as " -2 days from today"
    this change is happening every day after the planning run. - because of this there are really no backorders ( schedule line in the past ) in the system. we were not able to know if the vendor is actually delayed in this case.
    can you kindly suggest what went wrong here ??
    we are using strategy 10 for the planning of procured parts. Let me know if more info is needed.
    Note: we are also using stock transfer process for some procured parts. there too the PR date gets changed after each MRP run. There there is no lead time in this case. the order is placed on the same day as the requirement as both plants are nearby. There the PR date is changing everyday to the current date.
    your advice would be of great help
    thanks
    Nagendra Kumar

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • The data field format for the sql* loader

    the data field in my data file was surrounded by ",", such as "1","2","3",...
    so in my control file, I coded
    fields terminated by ',' enclosed by '"'
    no error after I execute sqlldr command.
    however, on data has been inserted into table either.
    if I remove "" and ,
    the data field changed to 1 2 3 ...
    and the data has been inserted into my table
    However the first format is what I want. can anyone experienced silmilar situation? please give me a hint.
    your help is highly appreciated
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Renali ():
    say:
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' TRAILING NULLCOLS (
    colname1,
    colname2,
    colname3)
    the data field in my data file was surrounded by ",", such as "1","2","3",...
    so in my control file, I coded
    fields terminated by ',' enclosed by '"'
    no error after I execute sqlldr command.
    however, on data has been inserted into table either.
    if I remove "" and ,
    the data field changed to 1 2 3 ...
    and the data has been inserted into my table
    However the first format is what I want. can anyone experienced silmilar situation? please give me a hint.
    your help is highly appreciated
    <HR></BLOCKQUOTE>
    null

  • Address Book "Dates" field

    When I change timezones due to travelling, the "Dates" field changes as well. However, the info I have in my "Dates" field are mostly anniversaries and they would show the wrong date either a day before or a day after depending where I'm travelling to. How can I make sure that even if I travel and change timezones, the dates in the Address Book's "Dates" field do NOT change along?
    It gets especially confusing when I enter more dates in the "Dates" field during my trip, and then change back to my original timezone. Now, I have to figure out which dates are accurate and which are a day behind or a day in advance.
    Help, please!

    I would think this is a bit of a bug in Address Book, and I don't think there is any control over it. Tell Apple: OS X Feedback
    AK

  • Filling Data fields of a DSO in End Routine

    Hi Everyone,
    The data fields of a DSO contains 2 key figures and a characteristic.
    In the End routine of the transformation, i have assigned constant values for the infoobjects in the data field.
    After executing the DTP, if I check in the New Table of the DSO, these constant values are present.  But when I activate the DSO, the values for key figures gets initialised and the values for the characterisitic becomes empty (NULL).
    Is it not possible to assign values for the infoobjects in the data field? If so, why is this limitation?
    Thanks in advance,
    Uma

    Uma,
    To populate any field in the end routine, you have to assign some constant in the transformation first and then re-populate them using the end routine.
    Sometimes if you dont assign any constant in transformation, the values remain initial and even after you write a code fo that field, it is not populated in the end routine.
    All you have to do is assign constant 0 to the key figures you are populating in the end routine and run the DTP again.
    Thanks
    Sachin

  • Formatted Search for Delivery Date field in SO not working

    Hi All
    Can anyone help me as to why my formatted search is not working?
    I am currently using SAP B1A SP01 Patch 19.
    I have created a user query as follows:
    SELECT $ [$10.0.DATE] + 5
    When I add this to the delivery field within the Sales Order and bring through the saved query which I set to auto refresh when the Posting Date field changes and to Display Saved Values it doesn't work.
    Any ideas?
    Thanks and best wishes
    Gail

    HI Gail,
    If I am not mistaken you want to add days to the posting date...if that is so then try this out:
    SELECT $[ORDR.DocDate.DATE]+5 From ORDR T0 For Browse
    Set The indicator to Auto Refresh when the fields change
    Nagesh

  • Report needed: Customer master TAXKD field changes

    We are looking to track changes made to TAXKD (tax code) in customer master.   Is there any report we could generate weekly that would detail changes made to the field. 
    Also, we'd like what change was made.  (i.e. customer number, date, field changed from 0 to 2)
    Thanks,
    Michelle

    Hi Michelle,,
    Those changes will be recorded in the CDHDR and CDPOS tables with your field name based on the dates..
    and also with the Old value and the New value
    from the CDPOS
    pass
    OBJECTCLAS = 'DEBI'.
    OBJECTID      =  Your document number "optional
    TABNAME    =  'KNV1.
    FNAME       =   'TAXKD'.
    if you pass these thins you will get the in the fileds VALUE_NEW and VALUE_OLD
    hope these informatino useful to you.
    Thanks
    Edited by: Prasanth on Apr 13, 2009 7:40 PM

  • Track field changes - Modelling

    Hello Gurus,
    I hope someone out there can help me. I have a requirement to track header data field changes from data loaded from a non-SAP external system and report on the changed columns showing old value and new value. I am using dbconnect to extract data into a standard ODS.
    What modelling do I need to do to satisfy this requirement.
    Can you please help?

    hi Ruregerero,
    i think at least there are 2 approaches
    #1 account-base,
    keyfield1- keyfield2 - ... keyfieldN -  itemname - old_value new_value - change_flag
    with this, it's more flexible in terms of if new item(s) to be tracked come,
    but will have more records
    to have reports like following, in query you can use 'restricted keyfigures' (each keyfigure restricted to item value),
    keyfield1- keyfield2 - ... keyfieldN -  item1_old_value -item1_new_value -changes (new-old)- item2_old_value item2_new_value-...
    #2 column-base
    keyfield1- keyfield2 - ... keyfieldN -  item1_old_value - item1_new_value item2_old_value - item2_new_value .... itemN_old_value - itemN_new_value
    not flexible for new item added, has to add new infoobjects in ods,
    performance may better compared to approach #1
    hope this helps.

Maybe you are looking for

  • MY BAD EXPERIENCE WITH CHAT AND VISION

    In my personal e-mail I received publicity inviting me to purchase a Skype credit gift card. I thought it was a nice offer and I happened to have a friend that had the need and could use such a gift. I procedeed to purchase a $10 dollar gift card, I

  • Inverted comma while uploading

    Hello Friends, I am facing a liitle problem while uploading the longtext for tcode FS00 . In physical file or source file the long text doesnt contains any double quotes for text but at the time of uploading sap takes tht text in double quotes automa

  • Premiere Pro CC 2014 Not Passing Cross Dissolve to After Effects

    I know this was a bug a few years ago with CS5 and has been fixed since CS5.5. But I appear to be having the same problem after upgrading to CC 2014. When I import a Premiere sequence into AE the cross dissolve information is not being read by AE. In

  • MOVED: Won't run with 2 CPUs

    This topic has been moved to Server/workstation. Won't run with 2 CPUs

  • Raw up date for new nikon d7100 in cs5.1

    raw up date for nikon d7100 for cs5.1 can any one please help me on this matter