| 
					
						 Hi, 
 
 I have developed a UserType for automatically trimming strings retrieved from the database. 
 
 Is there a way to make this type the default type for varchar columns ? 
 
 In stead, I have to go through all the 200+ mapping files (we develop a file per class), and add a type for every string column.
 
 If not, I tried to use <typedef> to define a short name for my type. However, I cannot place in a common place (like in the hibernate config file), so I have to place it in every mapping file. Am I doing something wrong?
 
 Thanks. 
					
  
						
					 |