-->
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: Custom user type doesn’t work, if used within a key-property
PostPosted: Thu Jun 10, 2010 6:01 am 
Newbie

Joined: Wed May 19, 2010 4:42 am
Posts: 3
I build my composite id using a set of columns, now I need to be able to trim a value returned by one of the columns. I have created a custom user type to trim strings.

If I use the custom type within the “composite-id” xml node the type doesn’t work , if I use it out side it works.

Has any body seen this behaviour ?

Extract of the mapping used ....

Code:
....
    <composite-id name="IdBuilding"   class="....">
      <key-property name="Code" column="...." >
        <type name="TrimString">
          <param name="length">10</param>
        </type>
       </key-property>
       ...
     </composite-id>
....
     <property name="Code" column="...." >
      <type name="TrimString">
        <param name="length">10</param>
      </type>
.....
    </property>


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.