-->
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.  [ 9 posts ] 
Author Message
 Post subject: sql-query simulation of dynamic instantiation?
PostPosted: Wed Jun 01, 2005 5:01 pm 
Newbie

Joined: Wed Jun 01, 2005 4:30 pm
Posts: 1
I have a named sql-query for which I have attempted to simulate the dynamic instantiation behavior that is available when using an HQL query
- e.g. select new ItemRow( item.id, item.desc) from Item item


I am using Hibernate version: 2.1.3. The Database is DB2.

The following mapping seems to work but it appears to be slow in comparsion to runing the same SQL in directly from an isql tool.

Is my approach bad? Did I missing anything obvious in my configuration?


Mapping documents:
Code:
<class name="ReportItem"  mutable="false" >
  <id name="myId">
     <generator class="assigned"/>
   </id>   
   <property name="firstName" />
   <property name="lastName" />
</class>

<sql-query name="listMyData">
   <return alias="item" class="ReportItem"/>
   <![CDATA[
    select
        t.first_nm         as {item.firstName},
        t.last_nm          as {item.lastName}
    from
       my_table  t
</sql-query>




Mark


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Wed May 20, 2009 4:55 am 
Newbie

Joined: Wed May 20, 2009 4:44 am
Posts: 1
simulation credit auto
Thank you for providing us with the example code, and a brief explanation of the problem. However, we do not fully understand the problem you are experiencing


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Fri May 22, 2009 11:21 am 
Newbie

Joined: Fri May 22, 2009 11:04 am
Posts: 2
its a lot of help. thanks :D
simulation rachat de credit


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Sat May 23, 2009 8:50 am 
Newbie

Joined: Sat May 23, 2009 8:42 am
Posts: 1
please be more specific with your problem or you can pm i might be able to help you.
simulation assurance vie


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Tue May 26, 2009 3:08 am 
Newbie

Joined: Tue May 26, 2009 3:05 am
Posts: 1
hello everyone. Nice to meet you all.

fiscalite assurance vie


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Sun May 31, 2009 11:07 pm 
Newbie

Joined: Sun May 31, 2009 11:05 pm
Posts: 1
HEY! Thanks for your idea


simulationcredit


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Tue Jun 30, 2009 11:07 pm 
Newbie

Joined: Tue Jun 30, 2009 10:50 pm
Posts: 1
Is my approach bad? Did I missing anything obvious in my configuration?
sonnerie portable gratuite


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Thu Aug 20, 2009 3:22 am 
Newbie

Joined: Thu Aug 20, 2009 3:18 am
Posts: 2
I came across this forum by chance and discovered this is one of the best thread ever. Thanks u guys so much for the information you give. So cool.






comparatif simulation assurance vie multisupport - simulation assurance vie ! Les sites de simulation assurance viecomparatif simulation assurance vie multisupport


Top
 Profile  
 
 Post subject: Re: sql-query simulation of dynamic instantiation?
PostPosted: Thu Aug 20, 2009 5:06 am 
Newbie

Joined: Thu Aug 20, 2009 5:00 am
Posts: 1
Marked! I will check it later!thanks a lot.:-)
simulation taux banque credit immobilier de France - Credit immobilier de France, simulation credit immobilier. Résultat mitigé pour le crédit immobilier de France.simulation taux banque credit immobilier de France


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