Because a timestamp is the number of whole seconds since 1970. On Wed, Oct 28, 2009 at 8:21 PM, Edierley <[email protected]> wrote: > > > Hi everybody, how are you? > I'm here using nhibernate with C# and OracleServer Express. > I mapped a class but it is not persisting the miliseconds, i'm using > oracle timestamp and nhibernate timestamp, but debbugging i saw that > the generated sql > clause is passing the date without the miliseconds. > Anybody saw this type of situation? Any ideia that maybe help? > Below there is the description of the class properties, the table and > the hbm mapping. > > Thanks in advance for any answer. > > -Class Properties -------------------------------------------------- > int ID; > int Other; > DateTime TheTime; > > -Table------------------------------------------------------------ > CREATE TABLE "TESTTABLE" > ( > "ID" NUMBER(10,0) NOT NULL ENABLE, > "OTHER" NUMBER(10,0) NOT NULL ENABLE, > "THETIME" TIMESTAMP(6) NOT NULL ENABLE > ) > > -HBM > Mapping------------------------------------------------------------ > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="X" > assembly="X"> > <class name="test" table="TESTTABLE" lazy="false"> > <id name="ID" column="ID" unsaved-value="-1"> > <generator class="assigned"/> > </id> > <property name="Other" column ="OTHER" type="Int32" not-null="true"/ >> > <property name="TheTime" column ="THETIME" type="Timestamp" not- > null="true"/> > </class> > </hibernate-mapping> > --------------------------------------------------------------------------------------- > > > >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
