check for activation always reports false
isActivated = entityManager.createQuery( "objectdb activation", boolean.class).getSingleResult();
everything is enhanced, 100 million objects, working fine
check for activation always reports false
isActivated = entityManager.createQuery( "objectdb activation", boolean.class).getSingleResult();
everything is enhanced, 100 million objects, working fine
This query checks whether activation is available in your current environment, i.e. whether a valid activation code is present in the objectdb.conf file. When using an OEM licence, it should return true in the development environment and false in production on end-user computers, where the classes are enhanced but the activation code is either not available or does not match the production / end-user computers.
In addition, you can also check the classes themselves (for example, during the build process or at runtime). Classes that are OEM-enhanced implement the com.objectdb.spi.SignedType marker interface, so you can check this on a per-class basis with:
boolean isOemEnahnced = com.objectdb.spi.SignedType.class.isAssignableFrom(MyEntity.class);