Sorry, there seems to be some "internal server errors" on your forum... Trying again:
first of all thank you for your kind help and fast replies. We have now tried various things, but are not any wiser.
Running your code yields the usual error:
Exception in thread "main" com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit
The log file does indeed show the "Entity Class: "... messages, as you may or may not see from the attached log (Did you actually receive the log file? The "Files add" button does not report this properly...)
We have also tried to write a small program to reproduce our issue, but without any luck. We open a database from our production code and with the older objectdb versions we see the evaluation limit error (as expected). Using the latest objectdb version, the error is gone (Which is what we want to achieve). We still have this error in our (more complex) production code, though.
What we do there is the following:
We don't ship an objectdb licence key to the customer, but instead enhance all classes that we provide. Now the customer may create a database using the "full" version of our tool. He then switches to another licence model of our tool, with a reduced feature set. In this version, we do not install / provide all classes, but a limited set. When the customer tries to open the database, we get the evaluation limit error.