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?
1.4m articles
1.4m replys
5 comments
57.0k users