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
Post a Comment