I have a legacy database which stores many values which should be numeric as CHAR and VARCHAR values.
Normally a VARCHAR or CHAR is mapped to a String. Can I override it to return it as an Integer?
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.
If there is no way to do this automatically, you should be able to use a Hibernate UserType
See: http://i-proving.com/2005/08/03/user-types-in-hibernate