GeezerVison is showing github.com — api annotation changes for 0.9.10 · liuyuhua-ha/objectbox-java@19af1e9
File tree
Expand file treeCollapse file tree
Open diff view settings
objectbox-java-api/src/main/java/io/objectbox/annotation
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Convert.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
17 | 17 | Class<? extends PropertyConverter> converter(); |
18 | 18 |
|
19 | 19 | /** |
20 | | - * Class of the column which can be persisted in DB. |
| 20 | + * Class of the DB type the Java property is converted to/from. |
21 | 21 | * This is limited to all java classes which are supported natively by ObjectBox. |
22 | 22 | */ |
23 | 23 | Class dbType(); |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Entity.java -8Lines changed: 0 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
55 | 55 | // */ |
56 | 56 | // Class protobuf() default void.class; |
57 | 57 |
|
58 | | - /** |
59 | | - * UIDs identify entities (and properties) uniquely in the meta object model file (objectmodel.json). |
60 | | - * With UIDs you can map entities to their meta model representation in a stable way without its name. |
61 | | - * Once a UID is set, you can rename the entity as often as you like - ObjectBox keeps track of it automatically. |
62 | | - * Thus, it is advisable to lookup the UID in objectmodel.json and use it here before renaming a entity. |
63 | | - */ |
64 | | - long uid() default 0; |
65 | | - |
66 | 58 | } |
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Id.java +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
11 | 11 | @Retention(RetentionPolicy.CLASS) |
12 | 12 | @Target(ElementType.FIELD) |
13 | 13 | public @interface Id { |
14 | | - /** |
15 | | - * Specifies that id should increase monotonic without reusing IDs. This decreases performance a little bit for |
16 | | - * putting new objects (inserts) because the state needs to be persisted. Gaps between two IDs may still occur, |
17 | | - * e.g. if inserts are rollbacked. |
18 | | - */ |
19 | | - boolean monotonic() default false; |
| 14 | +// /** |
| 15 | +// * Specifies that id should increase monotonic without reusing IDs. This decreases performance a little bit for |
| 16 | +// * putting new objects (inserts) because the state needs to be persisted. Gaps between two IDs may still occur, |
| 17 | +// * e.g. if inserts are rollbacked. |
| 18 | +// */ |
| 19 | +// boolean monotonic() default false; |
20 | 20 |
|
21 | 21 | /** |
22 | 22 | * Allows IDs to be assigned by the developer. This may make sense for using IDs originating somewhere else, e.g. |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-java-api/src/main/java/io/objectbox/annotation/Property.java -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
19 | 19 | */ |
20 | 20 | String nameInDb() default ""; |
21 | 21 |
|
22 | | - /** |
23 | | - * UIDs identify properties (and entities) uniquely in the meta object model file (objectmodel.json). |
24 | | - * With UIDs you can map properties to their meta model representation in a stable way without its name. |
25 | | - * Once a UID is set, you can rename the properties as often as you like - ObjectBox keeps track of it automatically. |
26 | | - * Thus, it is advisable to lookup the UID in objectmodel.json and use it here before renaming a property. |
27 | | - */ |
28 | | - long uid() default 0; |
29 | 22 | } |
Collapse file
Copy file name to clipboard +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +package io.objectbox.annotation; |
| 2 | + |
| 3 | +import java.lang.annotation.ElementType; |
| 4 | +import java.lang.annotation.Retention; |
| 5 | +import java.lang.annotation.RetentionPolicy; |
| 6 | +import java.lang.annotation.Target; |
| 7 | + |
| 8 | + |
| 9 | +/** |
| 10 | + * UIDs identify entities (and properties) uniquely in the meta object model file (objectbox-model/default.json). |
| 11 | + * With UIDs you can map entities to their meta model representation in a stable way without its name. |
| 12 | + * Once a UID is set, you can rename the entity as often as you like - ObjectBox keeps track of it automatically. |
| 13 | + * Thus, it is advisable to lookup the UID in objectbox-model/default.json and use it here before renaming a entity. |
| 14 | + */ |
| 15 | +@Retention(RetentionPolicy.CLASS) |
| 16 | +@Target({ElementType.FIELD, ElementType.TYPE}) |
| 17 | +public @interface Uid { |
| 18 | + long value() default 0; |
| 19 | +} |