Hello Gavin,

i am very new to all this stuff, so i'm sorry, but i need more help. 
I use Java6, so think the ignoreProperty should work. 
My Problem is, that i think, it's only possiple to write the @IgnoreProperty
over methods, but not over a property (give a compile error). But i have no
getter-method etc. which is used for the properties i would like to ignore. 
Or am i wrong?

In the second altenative with the aegis file, i don't know if i did it
right. I did it like this:
I have a domain class called SystemAccountACL, so i created in the domain
class directory a file named SystemAccountACL.aegis.xml. In this i just
placed the code which you wrote me:

 <mappings>
   <mapping>
     <property name="subject" ignore="true"/>
   </mapping>
 </mappings>

Is this all what i have to write in this aegis file? 
And do i have to do some settings, that xfire knows to use this file?

Thanks a lot for your help
Daniel













Hogan, Gavin wrote:
> 
> Without annotations (No Java 5?) create an aegis file and set the
> recursive properties to ignore.
> 
> 
> SNIP
> 
> <mappings>
>   <mapping>
>     <property name="propertyName" ignore="true"/>
>   </mapping>
> </mappings>
> 
> LINK
> 
> http://xfire.codehaus.org/Aegis+Binding
> 
> 
> Need more help?  Just ask.
> 
> Gavin
> ___________________________________________
> 
> Gavin Hogan
> Programmer/Analyst
> The State University of New York
> State University Plaza
> Albany, NY 12246
> Phone 518-443-5481
> fax 518-443-5809
> e-mail [EMAIL PROTECTED] 
> 
> -----Original Message-----
> From: Daniel S. [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 31, 2007 1:28 PM
> To: [email protected]
> Subject: [xfire-user] Serialise recursive object structure
> 
> 
> 
> Hello all,
> 
> i have two classes which have both an instance from the other, so i get
> a
> stackOverflowexception, when i try to serialise it.
> I read in the forum about the @ignoreProperty, but i don't no exactly
> how to
> use it, because i don't have a getter-method for this property (if i add
> one, it changes nothing)
> 
> Can someone explain me exactly, how to ignore a property.
> 
> Here is my case again:
> 
> ClassA
> {
> ...
> ClassB b;
> }
> 
> classB
> {
> ...
> ClassA a
> }
> 
> And i have a webmethod which returnes a, like
> 
> public ClassA get...()
> {
>    return a;
> }
> 
> Thanks for your help
> Daniel
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Serialise-recursive-object-structure-tf4726631.htm
> l#a13514513
> Sent from the XFire - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Serialise-recursive-object-structure-tf4726631.html#a13544473
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to