Sorry, there seems to be some "internal server errors" on your forum... Trying again:
Good Morning,
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
at com.objectdb.o.MSG.a(MSG.java:64)
at com.objectdb.o.MST.Zv(MST.java:1145)
at com.objectdb.o.WRA.Zv(WRA.java:215)
at com.objectdb.o.TYS.e(TYS.java:769)
at com.objectdb.o.TYS.Zy(TYS.java:593)
at com.objectdb.o.TYM.Y(TYM.java:554)
at com.objectdb.o.TYM.j(TYM.java:489)
at com.objectdb.o.TYM.R(TYM.java:824)
at com.objectdb.o.TYM.Q(TYM.java:909)
at com.objectdb.o.TYM.K(TYM.java:981)
at com.objectdb.o.OBM.aO(OBM.java:384)
at com.objectdb.o.OBM.aO(OBM.java:270)
at com.objectdb.jpa.EMImpl.persist(EMImpl.java:415)
at smallTests.F2412.main(F2412.java:29)
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.