You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bfade7e
Browse filesBrowse the repository at this point in the historyBrowse files
* Validates that ORMLite framework is in the classpath
* Validation of ORMLite annotations is more robust (based on processor tools, not String parsing)
* Generated code doesn't repeat the connectionSource injection block
* Generated code looks better
* No need to inject context, we already have this
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/com/googlecode/androidannotations/AndroidAnnotationProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/com/googlecode/androidannotations/helper/AnnotationHelper.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/com/googlecode/androidannotations/helper/ValidatorHelper.java
if (hasDaoAnObjectModelParameterizedType(supertypes.get(i), modelObjectTypeMirror)) {
584
-
isValid = true;
585
-
break;
586
-
}
587
-
}
588
-
}
589
-
590
-
if (!isValid) {
591
-
valid.invalidate();
592
-
annotationHelper.printAnnotationError(element, "%s can only be used on an element that is a Dao or inherits from a Dao and has the parameterized type : " + modelObjectTypeMirror.toString());
if (elementUtils.getTypeElement(CanonicalNameConstants.REST_TEMPLATE) == null) {
790
751
valid.invalidate();
791
-
annotationHelper.printAnnotationError(element, "Could not find the SpringAndroid framework in the classpath, the following class is missing: org.springframework.web.client.RestTemplate");
752
+
annotationHelper.printAnnotationError(element, "Could not find the SpringAndroid framework in the classpath, the following class is missing: " + CanonicalNameConstants.REST_TEMPLATE);
if (elementUtils.getTypeElement(CanonicalNameConstants.DAO) == null) {
760
+
valid.invalidate();
761
+
annotationHelper.printAnnotationError(element, "Could not find the OrmLite framework in the classpath, the following class is missing: " + CanonicalNameConstants.DAO);
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/com/googlecode/androidannotations/processing/OrmLiteDaoProcessor.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations/src/main/java/com/googlecode/androidannotations/validation/OrmLiteDaoValidator.java
Copy file name to clipboardExpand all lines: AndroidAnnotations/functional-test-1-5/src/main/java/com/googlecode/androidannotations/test15/ormlite/OrmLiteActivity.java
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,6 @@
24
24
25
25
@EActivity
26
26
publicclassOrmLiteActivityextendsActivity {
27
-
28
27
@OrmLiteDao(helper = DatabaseHelper.class, model = User.class)
0 commit comments