Suggested Pages

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 must be in the same package of

package com.simonefolinojavablog;

public class User_ {

 public static volatile SingularAttribute id;


No comments :

Post a Comment

Suggested Pages