Difference between sorted and ordered collection in hibernate

Ads
 

Difference between sorted and ordered collection in hibernate

What is difference between sorted and ordered collection in hibernate?

View Answers

October 26, 2010 at 4:23 PM

sorted collection:

A sorted collection is sorting a collection by utilizing the sorting features provided by the Java collections framework. The sorting occurs in the memory of JVM which running Hibernate, after the data being read from database using java comparator. If your collection is not large, it will be more efficient way to sort it.

order collection :

Order collection is sorting a collection by specifying the order-by clause for sorting this collection when retrieval. If your collection is very large, it will be more efficient way to sort it .

Ads









Related Tutorials/Questions & Answers:
Sorted and ordered collection
Sorted and ordered collection  What is the difference between sorted and ordered collection in hibernate
What is the difference between hibernate and spring
What is the difference between hibernate and spring  Hi, What is the difference between hibernate and spring. Thanks
Advertisements
What is the difference between JPA and Hibernate?
What is the difference between JPA and Hibernate?  Hi, I have seen that both Hibernate and JPA are very popular. Developers are using... between JPA and Hibernate? What a beginner should learn? Thanks   Hi
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate
difference between first level and second level cache in hibernate  Difference between first level and second level cache in hibernate
Difference between struts and JSF
Difference between struts and JSF  What is the difference between struts and JSF
difference between == and === operators?
difference between == and === operators?  Is (====) operator available in java or not? difference between
What is the difference between the >> and >>> operators?
What is the difference between the >> and >>> operators?   hi, What is the difference between the >> and >>> operators? Thanks
Difference between 3d and 4d
Difference between 3d and 4d  what is the difference between 3d and 4d
Difference between Timer and Thread?
Difference between Timer and Thread?  Can anyone tell me about the difference between Timer and Thread, Why we need to have Timer in case we have Thread implimentation startegy in Java
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
what is the difference between extends and implements
what is the difference between extends and implements  difference between extends and implements
difference between lock and synchronization
difference between lock and synchronization  Hi, I am new in java please anyone tell me difference between lock and synchronization in java. its urgent. Thank in advance   Please visit the following link: Lock
Difference between SCJP Exams
Difference between SCJP Exams  What is the differences between SCJP 5 (310 - 055) exam and SCJP 6 (310 - 065) exam??? Thank You In Adv
What is difference between Hibernate 4 and 5?
Hibernate Tutorial: What is difference between Hibernate 4 and 5? Hibernate 5...(......) }) Check more at: What's new in Hibernate 5? What is difference between Hibernate 4 and 5? Here is the differences between Hibernate 4 and Hibernate 5
What is difference between Hibernate 4 and 5?
Hibernate Tutorial: What is difference between Hibernate 4 and 5? Hibernate 5...(......) }) Check more at: What's new in Hibernate 5? What is difference between Hibernate 4 and 5? Here is the differences between Hibernate 4 and Hibernate 5
What is difference between Hibernate 4 and 5?
Hibernate Tutorial: What is difference between Hibernate 4 and 5? Hibernate 5...(......) }) Check more at: What's new in Hibernate 5? What is difference between Hibernate 4 and 5? Here is the differences between Hibernate 4 and Hibernate 5
what is the Difference between weblogic and jboss?
what is the Difference between weblogic and jboss?  what is the Difference between weblogic and jboss
what is the difference between pop and oop
what is the difference between pop and oop  what is the difference between pop and oop
difference between hashcode,reference in java
difference between hashcode,reference in java  difference between hashcode,reference in java
What is the difference between $message and $$message?
What is the difference between $message and $$message?  What is the difference between $message and $$message
What is the difference between a constructor and a method?
What is the difference between a constructor and a method?  Hi, What is the difference between a constructor and a method?   Hi, I have found a good link of Java program related to difference between constructor
Difference between http and https
Difference between http and https  Difference b/w HTTP and HTTPS please provide answer in tabular form.   Hi Friend, Differences: 1)HTTP is hyper text transfer protocol which is responsible for transmitting
Difference between error and exception ????????
Difference between error and exception ?  Can we handle a error in java if yes than give an code of an example? Difference between error and exception handling.......   Exceptions are things you can create/throw
Difference between Struts and Spring
Difference between Struts and Spring  What are the difference between Struts and Spring?   Hi Friend, Differences: 1)Struts is a web framework while Spring is not. 2)Spring is a Layered Architecture while Struts
difference between $message and $$message
difference between $message and $$message  What is the difference between $message and $$message?   Hi friends, $message is a simple variable whereas $$message is a reference variable. Example: $name = 'Bharat
What are the Collection types in Hibernate ?
What are the Collection types in Hibernate ?  hi, What are the Collection types in Hibernate ? Thanks
calculate difference between two dates
calculate difference between two dates  hi, I was actually working on to calculate the number of days between two dates of dd/mm/yyyy format... the difference between the two dates

Ads