The Most Amazing Java Type Declaration Ever
I'd like to think I'm pretty comfortable with Java and generics but I recently came across this bit of Java code and it stopped me in my tracks :
public abstract class AnnotationBasedPersistentProperty<P extends PersistentProperty<P>> extends AbstractPersistentProperty<P> {..}
This class is internal to the Spring Data framework's Repository Support which removes the need to write boilerplate code when implementing a data access layer and also provides a common programming model for mapping domain objects and managing data access to any type of persistent store. Spring Data's current repository implementations include relational databases (JPA), Gemfire,MongoDB, Neo4.
Fortunately, if you use Spring Data in your Java…