-->
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.  [ 2 posts ] 
Author Message
 Post subject: Feature request: support DB "Domains" aka Type def
PostPosted: Wed Dec 31, 2003 5:24 pm 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
The SQL spec allows for the definition of "domains" or types. These are based on pre-existing (built-in) DB types like varchar.

It seems the middlegen tool does not read these -- or perhaps it is a gap in my postgresql jdbc driver. Or maybe middlegen gets this info but the hibernate plug in ignores it.

Anyway, generated hibernate xml mapping files do not include information about DOMAIN objects -- all such columns get mapped to simple "object" type.

== Ezra E.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 04, 2004 12:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Middlegen core supplies the possible java mapping choices for the database type. In CVS is an extension to allow you to add a custom java type mapper. There is an example implementation (which I might setup as the default) that does some pre testing and type allocation based on coded criteria (eg no primitive types for nullable fields). You might be able to use this facility to solve your problem.


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

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.