> If you're using the reflection API correctly, that shouldn't be necessary.
There is something very wrong here, because I just can't see this :( I must have a simple POJO Person.java with JPA annotations in it, I cannot persist a byte array of my message, otherwise I wouldn't be able to make SQL queries on it. So, this class Person.java is not the class generated by protoc, I have another class PersonMessage.java generated by protoc and I want to copy all the values from an PersonMessage instance to a Person instance. Both classes have attributes with the same name.
I didn't succed to do this with reflections, I would have to write a considerably complex code to cover all the cases (all types of fields inside the protobuf: messages inside messages, array of messages inside the message, etc), as I see, it's not just a question of iterating over a Map of fields.
This is nice, it resolves the problem for the java side, but I still have the same problem on my client that uses C# :(
Thanks