|
26 | 26 | * with the provided mode and helper classes. |
27 | 27 | * </p> |
28 | 28 | * <p> |
29 | | - * All parameters are mandatory: |
| 29 | + * The helper paramter is mandatory and should hold the class of your database |
| 30 | + * helper which should extend |
| 31 | + * com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper |
30 | 32 | * </p> |
31 | | - * <ul> |
32 | | - * <li><i>helper</i>: should hold the class of your database helper which should |
33 | | - * extend com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper</li> |
34 | | - * <li><i>model</i>: should point to the model class that the DAO relates to. It |
35 | | - * should match the type of the first generic parameter of your Dao.</li> |
36 | | - * </ul> |
37 | 33 | * <p> |
38 | 34 | * <b>Note:</b> The minimum version required of ORMLite is 4.21 |
39 | 35 | * </p> |
|
53 | 49 | * public class MyActivity extends Activity { |
54 | 50 | * |
55 | 51 | * // UserDao is a Dao<User, Long> |
56 | | - * @OrmLiteDao(helper = DatabaseHelper.class, model = User.class) |
| 52 | + * @OrmLiteDao(helper = DatabaseHelper.class) |
57 | 53 | * UserDao userDao; |
58 | 54 | * |
59 | | - * @OrmLiteDao(helper = DatabaseHelper.class, model = Car.class) |
| 55 | + * @OrmLiteDao(helper = DatabaseHelper.class) |
60 | 56 | * Dao<Car, Long> carDao; |
61 | 57 | * } |
62 | 58 | * </pre> |
|
73 | 69 | * @return the helper class |
74 | 70 | */ |
75 | 71 | Class<?> helper(); |
76 | | - |
77 | | - /** |
78 | | - * The class of the model what this DAO can manage. |
79 | | - * |
80 | | - * @deprecated Since <b>3.1</b> the model class is inferred from the type of |
81 | | - * the annotated field. This parameter will be removed in a |
82 | | - * future version. |
83 | | - * |
84 | | - * @return the model class |
85 | | - */ |
86 | | - @Deprecated |
87 | | - Class<?> model() default Void.class; |
88 | | - |
89 | 72 | } |
0 commit comments