Description

 Some of the objects from JPA Entity, which were getting created on 7.3 are not getting created in 8.x.x.

Observed in CAST AIP
Release
Yes/No
8.3.x(error)
8.2.x(tick) x<4
8.1.x (tick) 
8.0.x (tick)
7.3.x(error)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server(tick)
Microsoft SQL Server(tick)
CSS3(tick)
CSS2(tick)
Step by Step Scenario
  1. Run analysis of an application containing JPA Entity.
  2. Check in Enlighten.
Action Plan

The solution for this issue is to annotate all the JPA entity analysis unit in one execution unit by putting the annotation and then running the analysis.

  1. Find out which analysis unit has JPA entity
    1. Search for "javax.persistence.Entity" (this package is use for JPA entity) in the source code and see the corresponding AU which has JPA entity.
    2. If you have 7.3.x base then you can run the below query to find out the AU which has JPA entity. For example to see the presence of JPA entity in the AU run the below query in the KB of 7.3.5 as you have JPA objects in 7.3.5.

      select k.keynam, kpro.keynam
      from keys k
      join objpro op
      on op.idobj=k.idkey
      join keys kpro
      on kpro.idkey=op.idpro
      where k.objtyp=136021
      order by kpro.keynam

      You will get JPA objects as an output of this query and using these objects you can get the corresponding AU.

  2. Annotate all the JPA entity analysis unit in one execution unit by putting the annotation
  3. Run the analysis

Impact: The impact after applying the above WA might lead you to missing links as we are annotating the analysis units.

Notes/comments

Ticket # 8708

The issue has been fixed in CAST 8.2.4

Related Pages