« HQLからSQL | メイン | DetachedCriteriaとCriteria »

件数の指定

hibernateではsetFirstResult、setMaxResultsなどで取得時の件数を指定できます。
SQLにlimitやoffsetが付いた形で発行されるので、結果セットが膨らまず、有効です。
しかし、コレクションに対してfetch joinしている場合には件数が狂います。
対策としてはlazyにするか、結果セットのリストを自分でsubListする、などになります。

トラックバック

このエントリーのトラックバックURL:
http://www.grandnature.net/bin/mt-tb.cgi/74

コメント (30)

I am very made up I discovered this article. Cheers for your effort for this great read! I have you saved to check out the new stuff you blog about.

Do you mind if I quote a few of your articles as long as I provide credit and sources back to your website? My blog is in the very same niche as yours and my users would truly benefit from a lot of the information you provide here. Please let me know if this okay with you. Cheers!

It seems too complicated and very general for me to understand.

I’m really influenced with your writing talents well with the structure for your blog site.keep up the nice quality writing, it’s uncommon to look a nice blog like this one these days.

Thanks for all of your hard work on this blog. My mom takes pleasure in going through investigation and it is obvious why. A number of us notice all regarding the dynamic ways you convey invaluable techniques through the web blog and as well cause contribution from other ones on this subject matter plus our girl has always been becoming educated a lot of things. Take advantage of the rest of the year. You're the one carrying out a superb job.

neat stuff, i really enjoyed it.

Hello there! Nice post! But the site is loading pretty slowly.

Hey there! Good post! But this webpage is still loading pretty slowly.

Zune and iPod: Most people compare the Zune to the Touch, but after seeing how slim and surprisingly small and light it is, I consider it to be a rather unique hybrid that combines qualities of both the Touch and the Nano. It's very colorful and lovely OLED screen is slightly smaller than the touch screen, but the player itself feels quite a bit smaller and lighter. It weighs about 2/3 as much, and is noticeably smaller in width and height, while being just a hair thicker.

You should be a part of a contest for one of the best websites online. For certain I will recommend this blog!

I’m really influenced with your writing talents well with the structure for your blog site.keep up the nice quality writing, it’s uncommon to look a nice blog like this one these days.

I like Your Article about Sun Damaged to "Sun Virgin"! Perfect just what I was searching for! .

Just want to say your article is as astounding. The clarity in your post is simply excellent and i could assume you're an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

An fascinating speech is designer observe. I reckon that you should correspond author on this matter, it power not be a sacred thing but generally group are not enough to verbalise on specified topics. To the next. Cheers like your 件数の指定 (GrandNature).

Definitely this blog is very informative and neatly designed. Really you've motivated me strongly in my new project by this article. As a constant reader of your blog I want to tell you that your writing skills are superb.

If you're still on the fence: grab your favorite earphones, head down to a Best Buy and ask to plug them into a Zune then an iPod and see which one sounds better to you, and which interface makes you smile more. Then you'll know which is right for you.

Hi! Wonderful post! But the webpage is still loading pretty slowly.

I'm commenting to make you understand of the terrific encounter our princess found going through your web site. She even learned many things, not to mention what it's like to have a great teaching character to get many others easily know precisely chosen advanced subject areas. You actually exceeded our expected results. Thanks for delivering such priceless, safe, explanatory as well as cool tips about that topic to Evelyn.

Great. I learn something new on different blogs everyday. It will always be stimulating to see content from other bloggers. I’d love to share with the content on my blog if you don’t mind. Naturally I’ll put a link on your blog, let me know if you're interested!

out of almost all the blogs ive read through, such as this blog but not to get off topic -- however to truly create change monetarily a person must rely on themselves above all else

Magnificent goods from you, man. 件数の指定 (GrandNature) I've understand your stuff previous to and you're just extremely great. I really like what you've acquired here, certainly like what you are stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is really a tremendous 件数の指定 (GrandNature) informations.

Hey very cool web site!! Man .. Beautiful .. Amazing .. I'll bookmark your blog and take the feeds also…I am happy to find so many useful info here in the post, we need develop more techniques in this regard, thanks for sharing. . . . . .

It seems too complicated and very general for me to understand.

I got what you signify, thanks for putting up. Woh I am glad to feel this website through google. Thanks For Share 件数の指定 (GrandNature).

Thanks for all of your hard work on this blog. My mom takes pleasure in going through investigation and it is obvious why. A number of us notice all regarding the dynamic ways you convey invaluable techniques through the web blog and as well cause contribution from other ones on this subject matter plus our girl has always been becoming educated a lot of things. Take advantage of the rest of the year. You're the one carrying out a superb job.

Thanks for one's marvelous posting! I quite enjoyed reading it, you happen to be a great author.I will always bookmark your blog and definitely will come back later in life. I want to encourage yourself to continue your great work, have a nice morning!

This is getting a bit more subjective, but I much prefer the Zune Marketplace. The interface is colorful, has more flair, and some cool features like 'Mixview' that let you quickly see related albums, songs, or other users related to what you're listening to. Clicking on one of those will center on that item, and another set of "neighbors" will come into view, allowing you to navigate around exploring by similar artists, songs, or users. Speaking of users, the Zune "Social" is also great fun, letting you find others with shared tastes and becoming friends with them. You then can listen to a playlist created based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will be relieved to know you can prevent the public from seeing your personal listening habits if you so choose.

hey there and thank you for your info – I have definitely picked up something new from right here. I did however expertise a few technical points using this site, as I experienced to reload the website many times previous to I could get it to load correctly. I had been wondering if your hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords. Well I am adding this RSS to my e-mail and could look out for much more of your respective fascinating content. Make sure you update this again very soon..

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

How do you do? our family just loves your amazing blog thanks and pls keep it up

コメントを投稿

About

2008年05月27日 14:02に投稿されたエントリーのページです。

ひとつ前の投稿は「HQLからSQL」です。

次の投稿は「DetachedCriteriaとCriteria」です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。