openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <James_Car...@gap.com>
Subject PersistenceUnitUtil.getIdentifier() Implementation...
Date Tue, 19 Feb 2013 19:43:53 GMT
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