THRIFT-139. java: Expose field ids in more useful ways
authorDavid Reiss <dreiss@apache.org>
Thu, 9 Oct 2008 00:08:46 +0000 (00:08 +0000)
committerDavid Reiss <dreiss@apache.org>
Thu, 9 Oct 2008 00:08:46 +0000 (00:08 +0000)
commit31997ca9ee2ac234358b3cb9dc5792d95efe0f19
tree4d1eaae9c85615f6aea0120522a026531e6de8b0
parenta0b4409f57461bef7e0266ff46ed9602f3d222c2
THRIFT-139. java: Expose field ids in more useful ways

- Define constants in each structure class that provide access to the
  field ids by name (at compile time).  Use them for (de)serialization.
- For beans-mode code, generate a generic getter and setter for accessing
  fields by field id.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@703028 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc