openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chintan4181 <chintan4...@gmail.com>
Subject Re: may be OpenJPA limitation
Date Tue, 07 Jun 2011 21:06:18 GMT
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.

Mime
View raw message