-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Add support for UUIDs and ULIDs as TAG indexable field (reso…
…lves gh-364)
- Loading branch information
Showing
7 changed files
with
223 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...rc/test/java/com/redis/om/spring/annotations/document/fixtures/WithNestedListOfUUIDs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.redis.om.spring.annotations.document.fixtures; | ||
|
||
import com.redis.om.spring.annotations.Document; | ||
import com.redis.om.spring.annotations.Indexed; | ||
import lombok.Data; | ||
import lombok.NonNull; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.data.annotation.Id; | ||
|
||
import java.util.List; | ||
import java.util.UUID; | ||
|
||
@Document | ||
@Data | ||
@RequiredArgsConstructor(staticName = "of") | ||
public class WithNestedListOfUUIDs { | ||
@Id | ||
@NonNull | ||
private String id; | ||
|
||
@Indexed | ||
@NonNull | ||
private List<UUID> uuids; | ||
} |
6 changes: 6 additions & 0 deletions
6
...va/com/redis/om/spring/annotations/document/fixtures/WithNestedListOfUUIDsRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.redis.om.spring.annotations.document.fixtures; | ||
|
||
import com.redis.om.spring.repository.RedisDocumentRepository; | ||
|
||
public interface WithNestedListOfUUIDsRepository extends RedisDocumentRepository<WithNestedListOfUUIDs,String> { | ||
} |
24 changes: 24 additions & 0 deletions
24
...rc/test/java/com/redis/om/spring/annotations/document/fixtures/WithNestedListOfUlids.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.redis.om.spring.annotations.document.fixtures; | ||
|
||
import com.github.f4b6a3.ulid.Ulid; | ||
import com.redis.om.spring.annotations.Document; | ||
import com.redis.om.spring.annotations.Indexed; | ||
import lombok.Data; | ||
import lombok.NonNull; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.data.annotation.Id; | ||
|
||
import java.util.List; | ||
|
||
@Document | ||
@Data | ||
@RequiredArgsConstructor(staticName = "of") | ||
public class WithNestedListOfUlids { | ||
@Id | ||
@NonNull | ||
private String id; | ||
|
||
@Indexed | ||
@NonNull | ||
private List<Ulid> ulids; | ||
} |
6 changes: 6 additions & 0 deletions
6
...va/com/redis/om/spring/annotations/document/fixtures/WithNestedListOfUlidsRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.redis.om.spring.annotations.document.fixtures; | ||
|
||
import com.redis.om.spring.repository.RedisDocumentRepository; | ||
|
||
public interface WithNestedListOfUlidsRepository extends RedisDocumentRepository<WithNestedListOfUlids,String> { | ||
} |