在 2012年6月19日星期二UTC+8上午2时08分14秒,Oliver写道: > > 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 >
Thanks answer,is there any tools to do this ?? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/_MpjCBfk578J. 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.
