I have a user table with columns such as username and password? the username is unique and can be a primary key, but most examples I have seen on JPA keep Long id as the primary key. Is there any advantage of doing that or should I keep username as the primary key?
2.1m questions
2.1m answers
60 comments
57.0k users