GenerationTiming.ALWAYS with database generated values doesn't work as expected

As is described in this post: the generated values by database in timing “ALWAYS” is not working as expected

The method referenceColumnInSql is defined to return true and the method getDatabaseGeneratedReferencedColumnValue returns the value “current_timestamp”

So it is expected that the update statement also include the column and sets it’s value to “current_timestamp” but the column is missing in the update statemet and it is only included in the select statement to get the value from the database, but the value is never changed.

It is necesary to include the column in the update statement.

I think that this is a bug.

Pablo Perich

If you think it’s a bug, you need to replicate it with this test case template and open a Jira issue.