-->
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.  [ 2 posts ] 
Author Message
 Post subject: new() twice in a query
PostPosted: Mon Dec 20, 2004 2:01 pm 
Senior
Senior

Joined: Sun Jan 04, 2004 2:46 pm
Posts: 147
Hibernate version:
2.1.7

Mapping documents:

Name and version of the database you are using:
SQLServer 2000

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Code:
select

new RatedCdrEvent( rce.EvtId, rce.EvtDttm, rce.EvtCount, rce.EvtUsage, rce.StmId, rce.TskId, rce.SflId, rce.VersionId, rce.RceId, rce.RceUniqueKey, rce.RceOriginalANo, rce.RceOriginalBNo, rce.RceOriginalCNo, rce.RceANo, rce.RceBNo, rce.RceCNo, rce.RceInRutId, rce.RceOutRutId, rce.BscId, rce.RceGroupKey, rce.RceExtra1, rce.RceExtra2, rce.RceExtra3, rce.RceExtra4, rce.RceExtra5, rce.RceExtra6, rce.RceExtra7, rce.RceExtra8, rce.RceExtra9, rce.RceExtra10 ),

new RatedEvent( rev.EvtId, rev.EvtDttm, rev.EvtCount, rev.EvtUsage, rev.StmId, rev.TskId, rev.SflId, rev.VersionId, rev.RevId, rev.RevCode, rev.RevCount, rev.RevUsage, rev.BipId, rev.BpdId, rev.SvcId, rev.TffId, rev.TabId, rev.BndId, rev.TrnId, rev.RevFromEltId, rev.RevToEltId, rev.RevTrnCount, rev.RevAmt, rev.CurId, rev.RevBilledUsage, rev.RevRevenueFl, rev.RevRateModifier )

from RatedEvent as rev,  RatedCdrEvent as rce

where rev.EvtId = rce.EvtId  and rev.EvtDttm >= :evtFromDttm  and rev.EvtDttm <= :evtToDttm  and rev.BpdId = :bpdId  and rev.RevCode = :revCode  and rev.StmId = :stmId


Is this query with two constructors allowed by the syntax. If not, would it be easy to change given a few pointers? It doesn't seem to work at the moment as I'm getting a scalar 114 return types which is the above combined x2 which is odd, which then breaks trying to build the constructor.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 4:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
sorry, not yet. i hope we can massively anhance the select clause once we get the new parser working.


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