Hi Daniel,
Yes, that would be correct.  If you need to get the exact type as defined
by your entity class, then you would need to go another level deeper.  Just
to correct the link for anybody that is referencing this posting:
https://github.com/apache/openjpa/blob/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/util/OpenJPAId.java

Kevin

On Sun, May 24, 2015 at 11:58 PM, Daniel Cunha <[email protected]> wrote:

> Hi Folks,
>
> I have a doubt.
> This method (PersistenceUnitUtil#getIdentifier) should return the value of
> id, right?
> OpenJPA return a instance of OpenJPAId [StringId, LongId, BigDecimalId and
> etc ]
>
> This case, when ID is OpenJPAId, we need to call OpenJPAId#getIdObject
> here:
>
> https://github.com/apache/openjpa/blob/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerFactoryImpl.java#L361-L363
> no?
>
>
> --
> Best regard,
> Daniel Cunha (soro)
>

Reply via email to