| ReflectionUtil:40,51 explicitly check whether a property is synthetic and discard it if so. As synthetic properties are Real Properties Too, this check should be eliminated. Scenario: I am using Groovy transformations to insert boilerplate properties (specifically @Id and @Version). However, I am following best practices (JVMS 4.7.8) and, since the properties are not directly present in the code, marking them ACC_SYNTHETIC. They correctly show up on reflective calls such as getDeclaredFields(), but the ORM discards them, leading to a "No identifier specified for entity" error. The JPA specification does not indicate that synthetic fields or properties may be disregarded. |