openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <jcar...@carmanconsulting.com>
Subject Re: PersistenceUnitUtil.getIdentifier() Implementation...
Date Tue, 19 Feb 2013 19:59:09 GMT
Sorry for the double post.  I didn't think this would get through, since this email address
isn't registered.  Apparently it was moderated through.  

On Feb 19, 2013, at 2:43 PM, James Carman <James_Carman@gap.com> wrote:

> I'm having an issue where the getIdentifier() method is returning null on an entity with
the id set.  I have a class like this:
> 
> @MappedSuperclass
> public class UuidEntity
> {
>  @Id
>  private String id = UUID.randomUUID().toString();
> 
> }
> 
> My entities *always* have an id value.  Shouldn't getIdentifier() always return the value
of the "id" field?


Mime
View raw message