-->
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.  [ 5 posts ] 
Author Message
 Post subject: Globally replace type
PostPosted: Tue Feb 17, 2004 6:00 pm 
Newbie

Joined: Mon Feb 09, 2004 2:14 pm
Posts: 14
Is there a way to globally replace the type mapping for (for example) "string".

The database we use (DB2/390) returns padded strings for fixed column char data types (as it probably should). However, we're using fixed column width chars for efficiency, not because we want the padding. We'd rather drop off the extraneous trailing spaces.

While we can easily do this with a type clause:

* @hibernate.property column="COLOR" type="com.liberty.hibernate.DB2String"

this is somewhat invasive to the reading of the code - it would be everywhere. It would be nicer to be able to do

* @hibernate.property column="COLOR" type="string"

and set the DB2String setting in the global hibernate configuration files.

I'm using 2.1.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 7:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Don't think thats possible right now. Probably you can do some workaround by using ants filtertasks or something to replace a placeholder with the classname.


Top
 Profile  
 
 Post subject: good idea
PostPosted: Tue Feb 17, 2004 8:47 pm 
Newbie

Joined: Mon Feb 09, 2004 2:14 pm
Posts: 14
not a bad idea... I'll look into that.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2004 8:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Take a look at this old post, too: http://forum.hibernate.org/viewtopic.php?t=927759&highlight=ant+filter


Top
 Profile  
 
 Post subject: appreciated
PostPosted: Tue Feb 17, 2004 8:55 pm 
Newbie

Joined: Mon Feb 09, 2004 2:14 pm
Posts: 14
Very much appreciated - I didn't come across that one in my searches (before posting).


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.