Featured Post

Scalability Techniques

Scalability is about the capability of a system to manage the increase workload of a system without causing qualities impact (i.e. perfo...

Wednesday, April 22, 2015

@StaticMetamodel is null

A common problem is the situation when you have a Static Metamodel attribute with NULL value. During a query that makes use of the SingularAttribute you can have a NullPointerExcepton

One of the most common problem is that the Entity class and the StaticMetamodel class must be in the same package.

In the following example User.java must be in the same package of User_.java.


package com.simonefolinojavablog;

public class User_ {

 public static volatile SingularAttribute id;


No comments :

Post a Comment