## Hibernate

Implemented in class xdoclet.modules.hibernate.HibernateTagsHandler.

- Block Tags
- Content Tags

### Block Tags:

#### ifCurrentMappingElementIsnt (block template)

Render template if the current mapping element is not the one specified.

#### ifHasCompositeId (block template)

Render template if ID is composite.

#### ifHasPrimitiveId (block template)

Render template if id is primitive.

#### ifUseJndiFactory (block template)

Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not be using that subtask.

#### ifNotUseJndiFactory (block template)

Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not be using that subtask.

#### ifHasJndiName (block template)

Render template if jndiName of JBossServiceSubtask is valid. This is a required parameter, but the user might not be using that subtask.

#### ifGeneratePropertyCache (block template)

Render template if all of the properties needed are valid.

#### ifNotHasJndiName (block template)

Render template if jndiName of JBossServiceSubtask is not valid.

#### forAllPersistentClasses (block template)

Iterates over all classes marked as persistent.

#### forAllJndiProperties (block template)

Iterates over all jndiProperties specified.

#### forAllOtherProperties (block template)

Iterates over all otherProperties specified.

#### forAllOtherMappings (block template)

Iterates over all otherMappings specified.

#### 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.

#### driver (content template)

Driver Name extractor.

#### jdbcUrl (content template)

JDBC URL extractor.

#### userName (content template)

username extractor.

#### password (content template)

password extractor.

#### poolSize (content template)

poolSize extractor.

#### factoryClass (content template)

classname extractor.

#### mappingList (content template)

Comma separated list of hibernate mappings.

#### logMapping (content template)

Print the name of the current class to the console.