0

I have the following table

userId
accountNumber
role

where each userId can have many roles for many accountNumbers.

I'd love to be able to make a map like the following..

public class User 
{
   Map<String, List<String>> rolesPerAccountNumber;
}

Is this possible or is there something similar I can do?

1 Answer 1

1

This won work. You would be better off putting it in a separate table(@Entity).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.