Pretty Chill
JCHJava Community | Help. Code. Learn.
•Created by Pretty Chill on 2/14/2025 in #java-help
Entity to Domain class
What is the best way to instantiate a domain class from the database entity class, when there are
many of these that share the same attribute? For example, a fraction of the students share the
same school, and if i were to create a new school for each, that would be having many instances
of the same school, instead of a single one.
4 replies