Cannot resolve method 'find'

Hello!

I have a problem that you might be able to help me with, regarding the persistence ‘find’ method. I was following the BPM example in the documentation and when I attempted to create a helper bean class for my ReqTech entity, I got the following error.

Additional info:
I’m using the latest platform version as of this moment.
My entity extends BaseIntIdentityIdEntity.
My entity has an overridden identity integer primary key.

Hi Andrei,

Identity-based entities have identifiers of a complex type: IdProxy. So your code should look like this:

persistence.getEntityManager().find(ReqTech.class, IdProxy.of(reqtech_id));
1 Like

It works. Thank you!