How would you interact this with a User class in java? Right now I have an application that registers users into a database, but I am thinking that when the registration is successful, do I call the User constructor and pass as parameters the data in the database? Then there is a User object instantiated for the user when the user logs in. Is this the right way to do it?

I'm not getting any errors. It runs, it says the person was added, and I can't use the same information again, so it must be there somewhere. When I go to see the table in the db browser, there's nothing there. What could be causing this?