Our patient entity extends a person entity. In CUBA, the name pattern was declared like this: @NamePattern("#getName|firstName,lastName") - and it worked fine. getName() is a method of the parent entity (Person) - as are first and lastname as well.
Upon migration, I get a an exception saying:
Caused by: org.springframework.security.authentication.InternalAuthenticationServiceException: java.lang.RuntimeException: Instance name method getName not found in meta class medflexj_Patient
The getName method is a method of the Person class which Patient extends. The name attributes are also on the Person class. This is a very normal inheritance structure for Java.
The exception being thrown isn’t even correct - there is indeed a getName method - it’s on the parent class…which is completely valid.