Error com.haulmont.cuba.core.global.RemoteException: MetaClass not found for

Hi everyone,

I have a problem with JPQL Query.
I have an M:N relationship

means A 1--------N TABLE_C 1---------- B,

when I try to make a join like table_c.id = a.id, I get this kind of problem:

Error com.haulmont.cuba.core.global.RemoteException: MetaClass not found for

How to solve it? This TABLE_C, will be created by cuba, when I use an M:N association in the class…

Thanks a lot

Here is the problem in more detail:

Hi,
In JPQL, you can operate only with entities and their attributes. The automatically created link table for a many-to-many association is not an entity.

Example of a valid query:

select a from EntityA a join a.collectionOfB b where b.name = :something