That is the metamodel for the persistance. It is how you can do type safe JPA queries in Java. It allows queries to staticly check your queries because classBar_
describes your JPA Bar
. In HQL, you can easily mistype a query and not know it until it is run.
So technically, the _
does not mean anything, but it is the convention used by JPA to name a metamodel class of a JPA persistent model class. Model_
is the metamodel of Model
, and it provides the names of the queryable fields and their types.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…