On Mon, Jun 18, 2012 at 3:07 AM, Jessen Gan <[email protected]> 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 -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
