Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить возможность использовать объекты как id для rocksDB #29

Open
Amaralus opened this issue Nov 10, 2023 · 0 comments
Labels
tech-debt technical debt
Milestone

Comments

@Amaralus
Copy link
Owner

Сейчас для id можно использовать только int, long и string
Нужно добавить возможность делать кастомные pojo как id, конвертировать их в json как и value
Так же нужно переделать модели на совместный ключ с привязкой к сущности Project

public class SomeModel {
    @Id
    private Key key;
    ...

    @CompoundKey
    private static final class Key {
        String project;
        long modelId;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt technical debt
Projects
None yet
1 participant