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 — added idAssignable flag · liuyuhua-ha/objectbox-java@c0a80fd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java-api/src/main/java/io/objectbox/annotation
    • Id.java
Expand file treeCollapse file tree
Open diff view settings
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
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@
1313
public @interface Id {
1414
/**
1515
* Specifies that id should increase monotonic without reusing IDs. This decreases performance a little bit for
16-
* putting new objects (inserts).
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.
1718
*/
1819
boolean monotonic() default false;
20+
21+
/**
22+
* Allows IDs to be assigned by the developer. This may make sense for using IDs originating somewhere else, e.g.
23+
* from the server.
24+
*/
25+
boolean assignable() default false;
1926
}

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.