Does Hibernate support database-side domains AKA user-defined datatypes ?
I do not mean user-defined datatypes which can be created in some databases like extensions to the basic datatype set. (e.g. in PostgreSQL).
I mean datatypes which are actually synonims or aliases for standard DBMS's datatypes with some predefined arguments and crated with something like
CREATE TYPE MYID numeric(10);
The supposed implementation would be
-- ability to mention the type in Hibernate mapping to be used in generation of DDL in case of schema export. (I understand that the types should be already in the DB, let's think we have them there.)
-- ability to use data type aliases in the Java code in form of my own types which are synonyms for the standard Java types used in ORM mapping. I understand that Java typesystem is not that extendable, but something still can be done.
Maybe there are some other use cases.
From what I know so far, this is NOT possible. Did I miss something ?
|