worthant / Java-labs

:ledger: Speedrun from 0 to Junior Java Developer
https://se.ifmo.ru/courses/programming
Other
7 stars 1 forks source link

Addition bug #53

Closed worthant closed 1 year ago

worthant commented 1 year ago
  1. Added element in client manager
  2. show -> bug with show, but doesn't matter
  3. shows in server, that id is very very big(should be psql db generated)
  4. remove_by_id {that_long_id} doesn't do anything
  5. entered db manually and saw, that id is 75, but remove_by_id 75 doesn't do anything either.

image

worthant commented 1 year ago

it just occured to me, that i always inserted all collection into database, because i have 1 union method writeToDatabase()

i need this method: addElementToDatabase(obj)

worthant commented 1 year ago

made id synchronization between database and in-memory collection