Skip to content

Commit 7b8f728

Browse files
committed
Fix column name typo in AuthenticationTokenDao native SQL
The updateCreationDate() method used AUT_CREATEDATE_D (missing ION) in a native SQL query while the DB schema and JPA @column annotation both use AUT_CREATIONDATE_D. This caused a PSQLException whenever session token refresh fired (e.g. remember-me renewal).
1 parent 653f507 commit 7b8f728

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs-core/src/main/java/com/sismics/docs/core/dao/AuthenticationTokenDao.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void updateLastConnectionDate(String id) {
104104
*/
105105
public void updateCreationDate(AuthenticationToken authenticationToken) {
106106
StringBuilder sb = new StringBuilder("update T_AUTHENTICATION_TOKEN ato ");
107-
sb.append(" set AUT_CREATEDATE_D = :creationDate ");
107+
sb.append(" set AUT_CREATIONDATE_D = :creationDate ");
108108
sb.append(" where ato.AUT_ID_C = :id");
109109

110110
EntityManager em = ThreadLocalContext.get().getEntityManager();

0 commit comments

Comments
 (0)