tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: Fwd: @XmlTransient
Date Tue, 23 Jun 2009 20:21:34 GMT
Yes, you can use it.

From: Santiago Miguel Aranda Rojas 
Sent: Tuesday, June 23, 2009 11:11 AM
To: user@tuscany.apache.org 
Subject: Re: Fwd: @XmlTransient

I want to use Annotation @XmlTransient in order to filter an attribute of one class in the
client response. I mean my web service is going to return a "Employee" but I dont want return
its "department" attribute. Because it is neccesary in order to avoid cyclic references. Have
you check if I can use these annotations using tuscany.

class Department {
  String name;
  List<Employee> employees;

class Employee {
  Department department;  // parent pointer
  String name;
  public void afterUnmarshal(Unmarshaller u, Object parent) {
    this.department = (Department)parent;
View raw message