Description

When you run the JEE analysis with Hibernate framework, Hibernate Entities are not created.

Observed in CAST Extension
Release
Yes/No
1.0.3(tick)
1.0.2(tick)
1.0.1(tick)
1.0.0(tick)


Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS3(tick)
CSS2(tick)


Step by Step scenario

  1. Migrate the application from lower version to higher version.
  2. Run the analysis on migrated base.
  3. Open enlighten and check for the Hibernate Entity, there would not be any Hibernate entity created.

Action Plan

To troubleshoot this issue, you need the following Relevant input

Perform the below actions:

  1. Check in the deploy folder if the hibernate mapping file (*.hbm.xml) is present.
  2. If the hbm.xml files are present in the deploy folder then check in the CAST-MS configuration under the corresponding analysis unit if you have the entry/entries of the folder/files of the Hibernate entity files

  3. Check if the Hibernate version is properly configured in CAST-MS according to the version of hibernate used in the application. ,
    Hibernate version can be seen by opening *.hbm.xml file . Highlighted part in the below screenshot is the hibernate version.

  4. If the entry of the folder/ files are not present then we need to check in the DMT configuration if the JEE file discoverer is activated, check this page which will give you an information on JEE file discoverer.
  5. If the discoverer is not activated then you need to activate the JEE file discoverer and migrate again, else as a workaround you need to provide the path manually as shown in Figure 1 so that the hbm.xml files would be analyzed.
  6. If the issue is not about the above scenario, then contact CAST Technical Support with Relevant input.

Relevant Input

CAST Support Tool (CST) - alias Sherlock by checking Export bases, Export logs, Export Configuration files and export source code. 

Impact on Analysis and Snapshot

Impact : Hibernate Entity objects will not be created

After applying the work around : Hibernate Entity objects will be created

 

Notes/comments
 When pom.xml or .project files are there, there is no use of using HBM File discoverer and it wont work if you use it. So when we have project/pom files we should not use JEE file discoverer.
Related Pages