GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • objectbox-java-api/src/main/java/io/objectbox/annotation
    • Convert.java
    • Entity.java
    • Id.java
    • Property.java
    • Uid.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Convert.java‎

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 numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Class<? extends PropertyConverter> converter();
1818

1919
/**
20-
* Class of the column which can be persisted in DB.
20+
* Class of the DB type the Java property is converted to/from.
2121
* This is limited to all java classes which are supported natively by ObjectBox.
2222
*/
2323
Class dbType();
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Entity.java‎

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 numberDiff line numberDiff line change
@@ -55,12 +55,4 @@
5555
// */
5656
// Class protobuf() default void.class;
5757

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-
6658
}
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Id.java‎

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 numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
@Retention(RetentionPolicy.CLASS)
1212
@Target(ElementType.FIELD)
1313
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;
2020

2121
/**
2222
* Allows IDs to be assigned by the developer. This may make sense for using IDs originating somewhere else, e.g.
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Property.java‎

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 numberDiff line numberDiff line change
@@ -19,11 +19,4 @@
1919
*/
2020
String nameInDb() default "";
2121

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;
2922
}
Collapse file

‎objectbox-java-api/src/main/java/io/objectbox/annotation/Uid.java‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.