I have a Money field in Sql server Table and mapping to double in hibernate.
how to format as 999,999?(three to three separate)
for example: 45000.0 —> 45,000
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest not to do this at the SQL or hibernate layer. You should handle this in you UI layer. You can use Java’s DecimalFormat or see here for an example.