I create the Hibernate metamodel classes as the article. http://www.thoughts-on-java.org/static-metamodel/
Sonar give me this critical issue that I want to fix:
Sonar suggestion is
Noncompliant Code Example
public class Greeter { public static Foo foo = new Foo(); ... }
Compliant Solution
public class Greeter { public static final Foo FOO = new Foo();
... }
But SingularAttribute
is interface.
Can anyone give me some suggestion?