本文整理了Java中org.grails.datastore.mapping.query.Query.getEntity
方法的一些代码示例,展示了Query.getEntity
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getEntity
方法的具体详情如下:
包路径:org.grails.datastore.mapping.query.Query
类名称:Query
方法名:getEntity
暂无
代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core
@Override
public PersistentEntity getEntity() {
if (!entityStack.isEmpty()) {
return entityStack.getLast();
}
return super.getEntity();
}
代码示例来源:origin: org.grails/grails-hibernate
@Override
public PersistentEntity getEntity() {
if(!entityStack.isEmpty()) {
return entityStack.getLast();
}
return super.getEntity();
}
代码示例来源:origin: org.grails/grails-datastore-gorm
protected void applyAdditionalCriteria(Query query, Closure additionalCriteria) {
if (additionalCriteria == null) {
return;
}
CriteriaBuilder builder = new CriteriaBuilder(query.getEntity().getJavaClass(), query.getSession(), query);
builder.build(additionalCriteria);
}
}
代码示例来源:origin: org.grails/grails-datastore-gorm
final ConversionService conversionService = query.getEntity().getMappingContext().getConversionService();
if (argMap.containsKey(ARGUMENT_MAX)) {
maxParam = conversionService.convert(argMap.get(ARGUMENT_MAX), Integer.class);
代码示例来源:origin: org.grails/grails-datastore-gorm
Query query = preQueryEvent.getQuery();
PersistentEntity entity = query.getEntity();
if(entity.isMultiTenant()) {
if(datastore == null) {
代码示例来源:origin: org.grails/grails-datastore-gorm-hibernate-core
Query query = preQueryEvent.getQuery();
PersistentEntity entity = query.getEntity();
if(entity.isMultiTenant()) {
if(hibernateDatastore == null) {
内容来源于网络,如有侵权,请联系作者删除!