viernes, 22 de octubre de 2010

Cannot navigate association field [field] in the SET clause target TOPLINK

We migrated an application from Hibernate to TopLink with almost no efford, having an standard pesistence layer is awesome! Anyway some querys after the migration wasn't working and we were getting'cannot navigate association field [field] in the SET clause target exceptions'. This happends because TopLink is a little more strict about your Entity Relations.

Example:

You have an entity School that includes an entity adress, and in the same way the adress is identified using an integer adressID.