I need to map a database field of type into two properties so that property = field value mod 100 and property2 = field value % 100, how is that done ?
Share
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.
Straghtforwad way would be to define a getter for %100 variant returning just %100 of mapped property in question. ( And maybe respective setter if you like it to be settable ) – so no need to hack hibernate.