-->
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: Trim with many-to-one
PostPosted: Fri Mar 11, 2005 7:18 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
Hibernate version:3.rc1


Please, sorry if i have post again this problem, but it's very important for me.

i have this hbm file, but don't work for my problem.
my association with my legacy data it's very bad.
I don't know whether to explain me in English, but I have to turn this query into hibernate, I pray you they are days that are firm in this point.

Select datidb,eltb from table where cdtbtb='CMP' and trim(CDELTB)=CMPFMO

Hope in you.
Devis


Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping>

   <class name="vo.as400.ModeVO" table="sdgtwb_dat.arcmo00f" lazy="false">


     <composite-id name="modevopk" class="vo.pk.ModeVOPK" >
              <key-property name="stagmo" column="stagmo" type="string"/>
              <key-property name="modemo" column="modemo" type="string"/>
        </composite-id>



         <property name="de20mo"  column="de20mo" type="string" />
         <property name="da30mo" column="da30mo" type="string" />



   <many-to-one name="cmpfmo" class="vo.as400.CCmpf" lazy="false" update="false" insert="false">
       <formula>'CMP'</formula>
                 <column name="CMPFMO"/>
   </many-to-one>
     </class>

</hibernate-mapping>


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.