I noticed that this morning.  the protobuf syntax looks enough like C+
+ that it can make it difficult to spot C++ code and distinguish it
from the protobuf examples on the same page.  I wonder if it might be
a good idea to make the C++/Java/Python code in the docs a different
color than the protobuf code.

consider this issue solved.

On Oct 31, 9:08 am, "users ...." <[email protected]> wrote:
> Well you can take in the language 
> guidehttp://code.google.com/apis/protocolbuffers/docs/proto.html#options
> where it talks about custom options.  It's just below the Options
> section.  This shows how to do it for a message and you'll be using
> the FieldDescriptor to do this.  One more thing to note is that you
> might consider looking into hibernate.  It appears you are working in C
> ++ so this might not be an option for you. I do know the hibernate
> path works.
>
> -Mike
>
> On Oct 28, 10:46 pm, elkvis <[email protected]> wrote:
>
>
>
>
>
>
>
> > I'm trying to develop a framework for accessing a mysql database, by
> > automatically generating a .proto file from the tables, with full
> > support for foreign key relationships, and I use extensions to the
> > FieldOptions message type to tag the various fields with the relevant
> > foreign key reference information.  the trouble I'm having is that I
> > can't seem to access the extended field options on the fields in my
> > message types.  I need to store table and column names in those field
> > options, and I need to be able to read those values for querying the
> > database to load data into objects.  I can get the built-in options
> > through the FieldDescriptor::options() method, but there's always a
> > uninterpreted option 999 at the end, and despite my best efforts, I
> > cannot find a way to read the custom field options from my messages.
>
> > how can I get to this data?

-- 
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.

Reply via email to