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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/addf93b3-53d2-4b6b-aaeb-933aa0e7a9a4%40googlegroups.com.
