xxxxxxxxxx
//Following code loads only a single category from the database:
Category category = (Category) session.get(Category.class, new Integer(42));
xxxxxxxxxx
@OneToMany( mappedBy = "category", fetch = FetchType.LAZY )
private Set<ProductEntity> products;