This rule checks that the JPA is only used in the dataaccess layer and optionally in common for embeddables.

Noncompliant Code Example

    package com.devonfw.ide.sonarqube.service.api;

    import javax.persistence.EntityManager;

    public class MyClass {}

Compliant Solution

    package com.devonfw.ide.sonarqube.dataaccess.api;

    import javax.persistence.Entity;
    import javax.persistence.Table;

    @Entity
    @Table(name="Foo")
    public class FooEntity {}