In recent versions of Hibernate, a new, more elegant approach has emerged, based on Java 5 annotations. Using the new Hibernate Annotations library, you can dispense once and for all with your old mapping files
tity class is a class that represents an entity in a business model. In our model, the entity classes are Customer, Order, and OrderItem. These classes represent business objects.