Hibernate to WebSphere JPA - XML rules

The Hibernate to WebSphere JPA XML rules are located under the XML File Review > Framework migration category of rules. These rules provide information on how to migrate Hibernate configuration and mapping files to their WebSphere JPA equivalents.

Rule Name Rule Description Automated Fix
Migrate Hibernate hbm.xml to JPA orm.xml

This rule helps to migrate Hibernate mapping (HBM) files to JPA object-relational mapping (ORM) files. This rule flags all XML files that have a hibernate-mapping root element.

The quick fix for this rule creates a new ORM XML file named <name>orm.xml in the same folder as the corresponding <name>hbm.xml file.

No
Migrate Hibernate hibernate.cfg.xml to JPA persistence.xml This rule flags Hibernate configuration files ( hibernate.cfg.xml ) for migration to JPA configuration files ( persistence.xml ).

The quick fix for this rule creates a persistence.xml file in the same folder as the corresponding Hibernate configuration file.

No