Fix entityManagerFactory bean reference issue.

see: http://stackoverflow.com/questions/23886389/no-bean-named-entitymanagerfactory-is-defiend-bean-reference-issue/23888021#23888021