On Dec 18, 2008, at 1:18 AM, Riccardo Cohen wrote:
> In the sample ManyToOne :
> http://caucho.com/resin/examples/amber-many2one/index.xtp I can see
> 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
> 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.
> Riccardo Cohen
> Architecte du Logiciel
> +33 (0)6.09.83.64.49
> resin-interest mailing list
resin-interest mailing list