Long key = new Long("2");
User user = em2.find(User.class, key.longValue());
declaration of User entity
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="USER_ID")
private long userId;
--
View this message in context:
http://openjpa.208410.n2.nabble.com/may-be-OpenJPA-limitation-tp6450246p6451381.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
