-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: DB-side domains support
PostPosted: Sun Nov 09, 2008 12:25 pm 
Newbie

Joined: Sun Nov 09, 2008 11:32 am
Posts: 1
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.