diff options
author | Vitaly Takmazov | 2022-12-03 15:28:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-14 12:57:52 +0300 |
commit | 0c0ea8897e64461b1cfa9cd86a939b48f0bdd640 (patch) | |
tree | f11c73b8246b0724b26ca08529c3c702e1722d79 /src/main/java/com/juick/service/UserServiceImpl.java | |
parent | 8344ea3e3e652f5307ffb6115d6fdebf638ba098 (diff) |
Initial PostgreSQL schema and profile
Diffstat (limited to 'src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r-- | src/main/java/com/juick/service/UserServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserServiceImpl.java b/src/main/java/com/juick/service/UserServiceImpl.java index 0e6f9606..b9e7721b 100644 --- a/src/main/java/com/juick/service/UserServiceImpl.java +++ b/src/main/java/com/juick/service/UserServiceImpl.java @@ -133,7 +133,7 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { throw new UsernameTakenException(); } - int uid = holder.getKeys().size() > 1 ? (int)holder.getKeys().get("id") : holder.getKey().intValue(); + int uid = holder.getKeys().size() > 1 ? ((Number)holder.getKeys().get("id")).intValue() : holder.getKey().intValue(); getJdbcTemplate().update("INSERT INTO useroptions(user_id) VALUES (?)", uid); getJdbcTemplate().update("INSERT INTO subscr_users(user_id, suser_id) VALUES (2, ?)", uid); |