LQ63 4d54122d24
Build & Test (NowChessSystems) TeamCity build failed
fix(account): fix EntityExistsException in syncOfficialBots/createOfficialBotAccount
Pre-assigning bot.id on a @GeneratedValue entity causes Hibernate 6 to treat
it as detached, throwing PersistentObjectException on persist(). Fix: persist
with null id (Hibernate assigns UUID immediately in-memory), then set token on
the now-managed entity — dirty tracking commits the token at transaction flush.
No second persist() call needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 14:21:27 +02:00
2026-03-21 14:40:00 +01:00
S
Description
No description provided
1.3 GiB
Languages
Scala 82.7%
Python 12.8%
Bru 3.1%
HTML 0.9%
Shell 0.2%
Other 0.2%