Many Hibernate users prefer to embed mapping information directly in sourcecode using XDoclet @hibernate.tags
. We will not cover this approach in this document, since strictly it is considered part of XDoclet. However, we include the following example of the Cat
class with XDoclet mappings.
See the Hibernate web site for more examples of XDoclet and Hibernate.