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: How do I revert to the classic COUNT in a config?
PostPosted: Mon Jan 22, 2007 8:51 am 
Newbie

Joined: Wed Dec 14, 2005 3:29 pm
Posts: 16
Dear all,

COUNT(*) is now returning Int64, which creates a pretty straightforward problem with ASP.NET. I fetch the object count and set grids VirtualItemCount to the value, which in turn uses PagedDataSource. PagedDataSource.VirtualCount This is Int32, so paging through billions of results isn't quite there yet.

I found that I can do
factory.Dialect.Functions["count"] = new ClassicCountFunction();

Is this the recommended way of doing this?
Is there a way to specify this in a .config file?

Thx
-dB.

Hibernate version: 1.2 beta 3


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.