Persistence persistence = checkPersistenceAnnotation(roundEnv);
if (persistence == null) {
return true;
}
AndroidManifest androidManifest = androidManifestAccess.load();
String updateHookName = getHookName(roundEnv, Update.class, DbUpdate.class);
String createHookName = getHookName(roundEnv, Create.class, DbCreate.class);
Set<? extends Element> entityAnnotated = roundEnv.getElementsAnnotatedWith(Entity.class);
String generatedPackage = androidManifest.getPackageName() + "." + GENERATED_SUFFIX;
generateDbSchema(generatedPackage, entityAnnotated, persistence, updateHookName, createHookName);
generateContentProviderIfRequested(generatedPackage, entityAnnotated);
} catch (RuntimeException e) {
messager.printMessage(Kind.ERROR, "Not able to generate DB schema from the annotated entity classes " + e.getMessage());
throw e;