The context here seems to be: "I have .proto file/files, and (for some
reason) I need to make additional tweaks to them in java/c#", right?

In the case of C#, "partial classes" may be your friend, especially if all
you are trying to do is add annotations/attributes. The tooling may also
generate "partial methods", but I haven't checked recently. No idea if
something similar exists in java.

On Sat, 4 Jan 2020, 03:16 Brandon Park, <lawnfa...@gmail.com> wrote:

> I'm trying to solve this exact same problem and was wondering how to use
> compiled proto code with JPA and if there have been any developments on
> this since 10 years ago.  Thanks
>
> On Monday, September 13, 2010 at 12:09:00 PM UTC-7, roberto_sc wrote:
>>
>> Hi
>>
>> I have a basic question about how to organize my project.
>> I have a client  running C# code, a server running Java code and I
>> intend to use protocol buffers to exchange data.
>> I thought I could use the .proto file to describe the classes of my
>> datamodel and generate .java and .cs and then use these generated src
>> as my datamodel. But protoc generate code for message exchange and
>> cannot be edited, for example, I cannot generate java code for my
>> Person class and add the annotations to persist using JPA.
>>
>> So, the question is, do I have to mantain 3 files - .java, .cs
>> and .proto - that represent the same thing?
>>
>> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/addf93b3-53d2-4b6b-aaeb-933aa0e7a9a4%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/addf93b3-53d2-4b6b-aaeb-933aa0e7a9a4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAF95VAzoQmZzdvB9kxOrkdbriiT7t7iX4i0RksVPakQu3G3YwQ%40mail.gmail.com.

Reply via email to