Great solution, thanks

Scott Ferguson wrote:
> On Dec 18, 2008, at 1:18 AM, Riccardo Cohen wrote:
> 
>> Hello
>> In the sample ManyToOne :
>> http://caucho.com/resin/examples/amber-many2one/index.xtp I can see  
>> how
>> to get the corresponding bean in the other table, thanks to its  
>> house id.
>>
>> Now as I transmit the object through hessian, I would like to retreive
>> only the one field name (for instance the house name) and not the  
>> whole
>> object.
>>
>> Is it possible ?
> 
> You could try making the @Many2One field transient (which would stop  
> Hessian from sending it.)
> 
> And then you could add a new field just for the house name and write  
> the setHouse(House) to store the house name.  When Amber fills the  
> house from the database, it will call setHouse, and you can store any  
> field you like in a serializable field.
> 
> -- Scott
> 
>> Thanks
>>
>> -- 
>> Riccardo Cohen
>> Architecte du Logiciel
>> http://www.architectedulogiciel.fr
>> +33 (0)6.09.83.64.49
>>
>>
>>
>> _______________________________________________
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to