org.hibernate.Query.setLocale()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.hibernate.Query.setLocale方法的一些代码示例,展示了Query.setLocale的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setLocale方法的具体详情如下:
包路径:org.hibernate.Query
类名称:Query
方法名:setLocale

Query.setLocale介绍

[英]Bind a positional Locale-valued parameter.
[中]绑定位置语言环境值参数。

代码示例

代码示例来源:origin: riotfamily/riot

public TypedQuery<T> setLocale(int position, Locale locale) {
  query.setLocale(position, locale);
  return this;
}

代码示例来源:origin: ezbz/projectx

@Override
public Query setLocale(final String name, final Locale locale) {
 return query.setLocale(name, locale);
}

代码示例来源:origin: com.github.cafdataprocessing/corepolicy-hibernate

@Override
public Query setLocale(int i, Locale locale) {
  return query.setLocale(i, locale);
}

代码示例来源:origin: com.github.cafdataprocessing/corepolicy-hibernate

@Override
public Query setLocale(String s, Locale locale) {
  return query.setLocale(s, locale);
}

代码示例来源:origin: riotfamily/riot

public TypedQuery<T> setLocale(String name, Locale locale) {
  query.setLocale(name, locale);
  return this;
}

代码示例来源:origin: ezbz/projectx

@Override
public Query setLocale(final int position, final Locale locale) {
 return query.setLocale(position, locale);
}

相关文章

微信公众号

最新文章

更多