java - With two tables in Cassandra of the same data but diff primary keys, how model in Spring Boot and use a data repository (or other DAO/ORM pattern)? -


if had 2 tables give me ability search email , username, how model in spring boot? can't have 1 auto-wired repository works on both since it's 2 different tables, data same.

what's proper way gives 1 interface find/create/delete users (in both tables stay in sync)?

create table users_by_username (     username text primary key,     email text,     age int )  create table users_by_email (     email text primary key,     username text,     age int ) 


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -