title: Hide an entity variable from xml message - @XmlTransient not working
body: <p>I have an entity class:</p>
  
  <pre><code>public class Customer implements Serializable {
  private static final long serialVersionUID = 1L;
  
  @XmlTransient
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Basic(optional = false)
  @Column(name = "CUSTOMER_ID")
  private Integer customerId;
  @Basic(optional = false)
  @NotNull
  @Size(min = 1, max = 30)
  @Column(name = "NAME")
  private String name;
  @Basic(optional = false)
  @NotNull
  @Size(min = 1, max = 30)
  @Column(name = "ADDRESSLINE1")
  private String addressline1;
  @Basic(optional = false)
  .
  .
  .
  .
  </code></pre>
  
  <p>I sent an object of the class via xml in jax-ws web service like so:</p>
  
  <pre><code>&lt;addressline1&gt;xx&lt;/addressline1&gt;&lt;addressline2&gt;xx&lt;/addressline2&gt;&lt;city&gt;xx&lt;/city&gt;&lt;country&gt;xx&lt;/country&gt;&lt;creditLimit&gt;xx&lt;/creditLimit&gt;&lt;customerId&gt;xx&lt;/customerId&gt;&lt;email&gt;xx&lt;/email&gt;&lt;name&gt;xx&lt;/name&gt;&lt;owner&gt;xx&lt;/owner&gt;&lt;phone&gt;xx&lt;/phone&gt;&lt;province&gt;xx&lt;/province&gt;&lt;zip&gt;xx&lt;/zip&gt;
  </code></pre>
  
  <p>Is it possible to not sent one of the variables such as customerId, which the client shouldn't see?
  I have added @XmlTransient, but no change.</p>