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.
Tag Archives: java
Finding out what associations are is pretty straightforward, what’s interesting is to make sure everybody in the project understand how to implement them on code. In this case, Java code. A couple of nice links on the matter are the ones in Java Ranch and Martin Fowler’s site.Averiguar qué es una asociación es bastante simple, lo que es interesante es asegurarse que todos en el proyecto entiendan como van a plasmar el modelo en código. En este caso, código Java. Un par de buenos links en este tema son el de Java Ranch y el sitio de Martin Fowler. Continue reading