SpinTheMic
Pro

Interview practice question

ORM annotations everywhere in business logic

Backend Engineering · OOP and Design Patterns · Intermediate

Your business logic depends heavily on ORM entities and query APIs, and the team wants to change the data access approach. Why is this hard, and how would you design to avoid it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Domain coupled to persistence framework.
  • Repositories as ports.
  • Domain models separate or minimally annotated.
  • Adapters map domain ↔ persistence.
  • Trade-off: mapping code.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics