[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] remote interface @Id is null

I have a simple entity

@Table(name = "contacts")
public class Contacts implements Serializable
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "contactid", nullable = false)
    private Integer contactid;
    @Column(name = "firstname")
    private String firstname;
    @Column(name = "lastname")
    public Integer getContactid()
        return contactid;

and a simple remote function

public Contacts getContact(Integer contactid)
    return em.find(Contacts.class, contactid)

but when I try to access the contactid of the result from the above function, I get a null value.. is this expected behavior? I know when using remote, the collections won't be accessible, but I would assume a simple Integer id would be?


    Derek Knapp