POSTS TAGGED WITH #Annotations

[← Back to all tags]

Of Domain Modeling, Separation of Concerns, and How the JPA Annotations Fail at Both

Not all of the JPA annotations are actually about mapping the entities to the database, or even about persistence at all. Some of them are intended to instrument the Java language for better modeling of the domain. Here’s a simple example of two domain classes that are somehow associated with each other (accessor methods are omitted for clarity):

[read more]