Thank you for the helpful information Paco. 'RTFM' is a great, great
and helpful information. I read the manual.

Does anyone have the same problem here to persist milliseconds with
nhibernate and have a real useful information to share?
Thank you.

On Oct 30, 6:32 pm, Paco Wensveen <[email protected]> wrote:
> You have to RTFM again :)
>
> On Fri, Oct 30, 2009 at 10:40 AM, Edierley <[email protected]> wrote:
>
> > On the documentation this type of data can be used as a date, as we
> > can see in many examples, and the date is a normal date with
> > miliseconds. Not quantity of seconds since 1970.
>
> > On Oct 29, 5:41 pm, Paco Wensveen <[email protected]> wrote:
> >> Because atimestampis 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
> >> > oracletimestampand nhibernatetimestamp, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to