Tag Archives: api

Target Entity

Lately I’ve been fighting with some teory vs practice which refused to cooperate and that’s become a bit frustrating. My problem was an API which looked OK but when time came to persist it with JPA entities it needed so much tweaking, pushing and pulling generics to get that covariant return to work that really felt something was terribly wrong. The point was to write an API which would allow the persistence layer implement it and still be manageable and targeted by the entity manager, but something wasn’t fitting.
Continue reading

Advertisements