You can use the @TypeDefs annotation to define a short type name for UserType. But how to define it for the whole application?
You can specify a base value type name (see http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html_single/#mapping-types-basictypes ) in your UserType class, making this class a replacement standard class.
For instance:
<typedef name="string" class="com.foo.hibernate.userType.NewStringUserType"></typedef>
Source: https://habr.com/ru/post/1730294/More articles:Reordering XML nodes according to a specific schema - c #Mac shell script запущенная программа java помещает две иконки в док-станцию - java.Net with a single .exe without installing the .NET Framework - .netЯвляется ли PHP единственным выбором: массовое и быстрое внедрение повторно развертываемого расширяемого веб-приложения? - pythonWhat is the difference between the various xsl files included in CheckStyle? - javaСоздание Cairo для Windows с MinGW (проблемы с связыванием libpng) - libpngIs there a better way to get the current class variable in java? - javaКак узнать, является ли это классом или интерфейсом в java, увидев имя? - javaHow to store a large amount of text data in memory? - performanceWinForms performance secret: is the result of PictureBox control slower than the original? - performanceAll Articles