This rule checks that the JPA is only used in the dataaccess layer and optionally in common for embeddables.
package com.devonfw.ide.sonarqube.service.api;
import javax.persistence.EntityManager;
public class MyClass {}
package com.devonfw.ide.sonarqube.dataaccess.api;
import javax.persistence.Entity;
import javax.persistence.Table;
@Entity
@Table(name="Foo")
public class FooEntity {}