On Mon, Jun 18, 2012 at 3:07 AM, Jessen Gan <
jess...@gmail.com> wrote:
> Recently,I used Protocol Buffer as a middleware to trans data between server
> and mobile_client.Read data from database by hibernate into java
> entities,then add into Protocol Buffer Object property one by one.It's a
> very heavy method.
>
> But I googled many key worlds to find a shortcut to do the this.the result
> is null.
If you have a set of rules that map your Java fields/methods to
protobuf field names, then you could build the message reflectively
via DynamicMessage.Builder, perhaps?
Oliver