I’m writing a program, using seam and an SQL database, that stores information about employees. I was told to store the pay as ints in the database. When the user enters the pay, it is stored as a String and when I use a setter for the employee object it turns it into an int. My problem is that I can’t figure out how to store it back in the string with the decimal back in place. Any ideas?
I’m writing a program, using seam and an SQL database, that stores information about
Share
if it is stored as number of cents, format it to a
floatand then divide it by 100.