Endeavor to templatize this stupid wicket thing

Wicket + Hibernate + JPA + Spring + MySQL...fuck me.