You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Alexander Zenger <a....@cetec.cc> on 2015/04/01 17:05:07 UTC
java primitive required fields
Hi,
I wanted to ask, if there is a way that the presence of a required primitive
field is checked when using java. My schema looks like this:
namespace java azen.thrift.person
struct Person {
1: required i32 id,
2: required string name,
3: optional string email,
}
For the string name everything is fine and when it is not set an exception is thrown.
Is this also possible for the integer id? Are there any workarounds?
I already tried using the option java:beans, but the result was the same.
--
regards
alex