Mantis - Resin
Viewing Issue Advanced Details
2515 minor always 03-11-08 09:33 03-24-08 12:31
emil  
ferg  
normal  
closed 3.1.5  
fixed  
none    
none 3.1.6  
0002515: Amber/Hessian serialization
(Reported by Riccardo Cohen)

I have an entity bean on the server :

@Entity
@Table(name="user")
public class user implements Serializable
{
   @Id @Column(name="id") @GeneratedValue int id;
   @Basic @Column(name="name") String name;
   @Basic @Column(name="pass") String pass;
   @Basic @Column(name="email") String email;
....

I found the data in my object with ObjectUtils.toString(event.result) :

(Object)\0
   __amber_id = 1
   __amber_name = "vvname"
   __amber_pass = "vv"
   __amber_email = "vv@vv.vv"
   id = 0
   name = (null)
   pass = (null)
   email = (null)

That's why I could not get the email : I have to add __amber_ !

Notes
(0002883)
ferg   
03-24-08 12:31   
jpa/0gj0