Search code examples
apache-cayenne

Apache Cayenne insert data from a non cayenne app to database


I've an Tomcat app running with cayenne, now I habe another application that inserts/changes data from outside in the db! As cayenne is fully cached, what would be the best way to make cayenne aware of the new / changed rows?

regards Markus


Solution

  • Unless you're using Query caches, any explicit fetch (e.g. a SelectQuery) you do in Cayenne will still hit the database, and thus should find the changed content.