openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu wang <wangy...@gmail.com>
Subject Timestamp precision question.
Date Mon, 18 Jun 2012 09:31:32 GMT
Hello,
I am using OpenJPA 1.2.2 connecting oracle DB.
For Timestamp field, the precision is always millisecond level after
the filed is persisted into DB, regardless of I print the timestampe
filed in java, its precision is microsecond level.
Any specific configuration I am not aware of?

Below is a sample:
	@Basic()
	@Column(name="LOGTIME")
	public java.sql.Timestamp getLogtime() {
		return this.logtime;
	}
	@Override
	public void setLogtime(java.sql.Timestamp logtime) {
		this.logtime = logtime;
	}

Regards,
Yu Wang

Mime
View raw message