My understanding is that whatever method you are using for registering a function, it only happens for a single connection. In Cayenne you are normally working with a connection pool with multiple connections. Moreover those can be closed and reopened transparently to the rest of the app. You need to...
In the past long gone Cayenne community was pursuing JPA compatibility (hence all those tasks in Jira). We no longer do. So ORM modeling in Cayenne is XML based as always. Annotations are often used for "secondary" metadata (like cache behavior, etc), but the main ORM model is XML. The...
I think I know what's going on. If you look at the exception, your stack trace indicates Cayenne version being v.3.0RC2. This is a version of the runtime. 2 files (one of which is called something like "cayenne-project.xml"), were generated by the Modeler version 3.1. You need to ensure that...
Yes, Cayenne generic objects make it possible to alter your model in runtime. You have an additional challenge to update the actual schema. There are a few unknowns in the description (is the underlying DB shared by multiple apps/users; concurrency of the schema changes; do the changes need to be...
One way to solve this would be to create Assignment objects in a separate ObjectContext.