title: How to register custom String UserType when using JPA + Hibernate
body: <p>So I want to always use my own custom type that extends the Hibernate <code>StringType</code> (also performs trimming and uppercasing). However I am having some issues on how to register it so it is always used instead of the default <code>StringType</code>, since I don't want to have to put the <code>@Type</code> annotation on every String.</p>
  
  <p>When just using Hibernate I know I can register it in the Configuration using <code>registerTypeOverride</code>, or in the <code>hbm.cfg.xml</code>, But how do I achieve this when using Hibernate in combination with JPA2? (note: I know there's @Convertor with auto = true in jpa 2.1, but the AS I have to use doesn't support JPA2.1 yet)</p>