What does an underscore concatenated to a class name mean?

前端 未结 2 878
深忆病人
深忆病人 2021-01-31 15:25

I was reading the \"Dynamic, typesafe queries in JPA 2.0\" article and stumbled upon this example:

EntityManager em = ...
CriteriaBuilder qb = em.getCriteriaBuil         


        
2条回答
  •  伪装坚强ぢ
    2021-01-31 15:53

    I found this way to declare the metamodel in this article.

    /**
     * A  meta model class used to create type safe queries from person
     * information.
     * @author Petri Kainulainen
     */
    @StaticMetamodel(Person.class)
    public class Person_ {
        public static volatile SingularAttribute lastName;
    }
    

提交回复
热议问题