Hello,
Sorry, I have solved it now.
What I do is use Strings to find classes' methods and fields and invoke or use them during runtime.
So suppose I have a field called "VVVpVV". When I tried to find a method called for example "getVVVpVV" what I found was what hbm2java had generated: "getVvvpVv" so I wasn't able to find the method using its name. I just want you to know that I didn't know why it was implemented in this way but if you say that it follows some kind of spec, well, I have nothing else to say.
I have had to implement a Strings filter to obtain the correct name:
The field name has to follow these rules:
-the first and second letters are always lowercase
-when the previous letter from an uppercase letter is uppercase too, this second letter becomes lowercase, else it remains uppercase.
I think that is enough.
Thanks for your answer and sorry,
Jose Luis
|