Skip to content

Commit 2169a68

Browse files
Follow-up: use UUID external type on ID property like in Sync docs
1 parent 5e95ba5 commit 2169a68

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

objectbox_test/test/entity.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ class HnswObject {
476476
@ExternalName(name: 'my-mongo-entity')
477477
class EntityWithExternalType {
478478
@Id()
479+
@ExternalType(type: ExternalPropertyType.uuid)
479480
int id = 0;
480481

481482
@Property(type: PropertyType.byteVector)

objectbox_test/test/objectbox-model.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@
735735
"id": "1:3044824951282217899",
736736
"name": "id",
737737
"type": 6,
738+
"externalType": 102,
738739
"flags": 1
739740
},
740741
{

0 commit comments

Comments
 (0)