openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Get primary key from persistent bean
Date Tue, 12 Dec 2006 01:45:31 GMT
On Dec 11, 2006, at 5:34 PM, Craig L Russell wrote:

> Hi Dain,
>
> How about
>
> Object pk = bean.getId();

That implies that every persistent bean implements getId().  That  
would work find for the beans I write but not for beans other write.   
This is a major hole in the JPA spec if you ask me.

-dain

Mime
View raw message