Commit b756949c authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Merge branch 'optimistic-locking' into 'main'

BetterHSQLDialect: TimeStamp with precision(8)

See merge request genesys-pgr/application-blocks!97
parents 7f4178ee 0b3279a5
......@@ -117,8 +117,8 @@ public interface Copyable<T> {
|| field.isAnnotationPresent(LastModifiedBy.class)
// or has @CreatedDate
|| field.isAnnotationPresent(CreatedDate.class)
// or has @LastModifiedDate
|| field.isAnnotationPresent(LastModifiedDate.class)
// or has @LastModifiedDate
// || field.isAnnotationPresent(LastModifiedDate.class)
// or has @NotCopyable
|| field.isAnnotationPresent(NotCopyable.class));
......
......@@ -41,6 +41,7 @@ public class BetterHSQLDialect extends HSQLDialect {
super();
registerColumnType(Types.CLOB, "clob");
registerColumnType(Types.BLOB, "blob");
registerColumnType(Types.TIMESTAMP, "timestamp(8)");
registerFunction("stddev", new StandardSQLFunction("stddev_pop", DoubleType.INSTANCE));
registerKeyword("day"); // Needed for DATEDIFF(DAY, ...)
......
......@@ -147,7 +147,7 @@ public class CopyableTest {
assertThat(copy.myCreatedBy, not(source.myCreatedBy));
assertThat(copy.myLastModifiedBy, not(source.myLastModifiedBy));
assertThat(copy.myCreatedDate, not(source.myCreatedDate));
assertThat(copy.myLastModifiedDate, not(source.myLastModifiedDate));
assertThat(copy.myLastModifiedDate, is(source.myLastModifiedDate));
assertThat(copy.myNotCopyable, not(source.myNotCopyable));
assertThat(copy.finalInt, is(42));
assertThat(copy.defaultInt, is(source.defaultInt));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment