I try'it H2 database for the first time.
Performance is amazing compared to sqlite. In my test, same operation
get about 1s with SQLite and about 40ms with H2Jdbc.
Anyway, i want to use with hibernate, so i make an app for test.
Everything work well, but i want to use option to set time for an
column at insert time.
Few time ago, i use that with mysql, and work well.
Now with H2, i got null value.
Relevant annotations are:

@Column(name = "datain")
@Temporal(TemporalType.TIMESTAMP)
@org.hibernate.annotations.Generated(org.hibernate.annotations.GenerationTime.INSERT)
private Date datain;

For H2 database: alter table age add column datain datetime;

I use H2Dialect.

It's supported by H2 database, this facility from hibernate(l use
latest version 3.6.2)?

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" 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/h2-database?hl=en.

Reply via email to