Search Results for: collection

Saving Collections in Hibernate with Example

Now we’ll learn about the Saving Collections in Hibernate with Example. In the previous tutorial, we learned about Embedding value type object. Now what will be doing when there are a lot of embeddable objects …

Collections in Hibernate and Adding Keys Example

In previous tutorial of Collections in Hibernate and Adding Keys Example we wrote the collection of objects of an entity class, we persist in the separate table, here there are following two tables are created …

Sorting in collection framework

We can sort the elements of: String objects Wrapper class objects User-defined class objects Collections class provides static methods for sorting the elements of collection.If collection elements are of Set type, we can use TreeSet. …