concept Category in category hibernate

This is an excerpt from Manning's book Java Persistence with Hibernate, Second Edition.
The application may nest a Category inside another Category, and so on. A recursive association, from the Category entity to itself, expresses this relationship. Note that a single Category may have multiple child categories but at most one parent. Each Item belongs to at least one Category.
This representation isn’t the complete domain model but only classes for which you need persistence capabilities. You’d like to store and load instances of Category, Item, User, and so on. We have simplified this high-level overview a little; we may introduce additional classes later or make minor modifications to them when needed for more complex examples.
The association between Category and Item is a many-to-many association, as you can see in figure 8.13. In a real system, you may not have a many-to-many association. Our experience is that there is almost always other information that must be attached to each link between associated instances. Some examples are the timestamp when an Item was added to a Category and the User responsible for creating the link. We expand the example later in this section to cover such a case. You should start with a regular and simpler many-to-many association.
Imagine that you need to record some information each time you add an Item to a Category. The CategorizedItem captures the timestamp and user who created the link. This domain model requires additional columns on the join table, as you can see in figure 8.16.