Spring’s Alternative Configuration Features
A primary complaint about Spring is the heavy XML configuration traditionally required to use it in a non-trivial way. More and more recent releases have made significant strides away from this model....
View ArticleNote: JPA InheritanceType.JOINED
Hey, make sure to annotate child model classes with @PrimaryKeyJoinColumn when using InheritanceType.JOINED. This annotation allows you to specify the column names to be used in mapping parent child...
View ArticleAdvanced Spring-Data JPA: Specifications and Querydsl
20,000 foot view Stop creating a method for every query permutation. Specifications wrap the JPA Criteria API. Using them makes your code less – and then more – readable and reusable. Check them...
View ArticleDitching JCL for SLF4J
When discussing these two logging API’s it really comes down to dynamic discovery vs. statically bound bridging mechanisms. As Ceki Gülcü wrote in his 2009 article detailing the problems with JCL:...
View ArticleDesert Code Camp Fall 2011
I’ll be attending Desert Code Camp tomorrow (today). The event will be going from about 9 to like 4:30pm. I’m going to be presenting on Spring Data JPA. Just a volunteer thing. Anyway, I built a...
View ArticleSuggested Reading
In the last few months, there have been quite a few really great articles floating around about being a software engineer, getting hired, self-promotion and strengths and weaknesses of a few major...
View ArticleMailing List Question: @Autowired Ambiguities
Today a question went out on a Spring mailing list asking about @Autowired dependencies, AOP proxies, and interfaces. I thought this was a great foundation question. So I thought I’d share it here....
View ArticleGWT can be Magical
The person or people responsible for the following must either be much more knowledgeable than I about JavaScript if statements, or simply more sinister. While pretty compiling one of my GWT modules...
View ArticleSuggested Reading: Programming
Today I have a few goodies for you. The first a well thought out response to the increasing complexity of PHP frameworks. The second, a now well known reactionary response to the evolution of software...
View ArticleCode Obfuscation: Anonymous Inner Class Death
Java, like most other modern languages, will let you get away with some really ugly code. Inspired by my recent gaze into GWT generated JavaScript, I decided to crank out this little gem. I’ve pretty...
View Article