## Hibernate

Implemented in class xdoclet.modules.hibernate.HibernateTagsHandler.

- Block Tags
- Content Tags

### Block Tags:

#### ifHasCompositeId (block template)

Render template if ID is composite.

#### ifHasPrimitiveId (block template)

Render template if id is primitive.

#### forAllSubclasses (block template)

Iterates over all classes loaded by javadoc that are direct subclasses of the current class and evaluates the body of the tag for each class. It discards classes that have an xdoclet-generated class tag defined.

### Content templates:

#### getFileName (content template)

Returns full path of hibernate file for the current class.

#### serviceName (content template)

Return configured service name.

#### jndiName (content template)

Configured JNDI name.

#### dialect (content template)

SQL dialect extractor.

#### dataSource (content template)

Data source JNDI Name extractor.

#### mappingList (content template)

Comma separated list of hibernate mappings.

#### logMapping (content template)

Print the name of the current class to the console.