The native queries approach isn't perfect.
原生查询方法并不是完美的。
But HQL does enable you to pass native queries to your underlying database.
但HQL的确可以让你直接向底层数据库传递本地查询。
Finally, you can have named native queries, and map the results back to a POJO.
最后,您可以拥有命名本机查询,并将结果映射回POJO。
All further communication with the data source is performed using native queries to the system tables of the data source.
数据源之间所有深层次的交流都是使用数据源系统表的本地查询来实现的。
Most OODBMSs follow the same basic coding conventions and idiomatic expressions, and in fact db4o's support for native queries has spawned an effort to standardize that feature as part of all OODBMSs.
大多数OODBMS 都遵循相同的基本编码约定和惯用表达式,而且实际上db4o对原生查询的支持已逐渐成为一种标准,使该特性成为所有 OODBMS的一部分。
For most applications Native Queries will be the better querying interface.
对于大多数应用来讲,原生查询将是更好的查询接口。
As we have seen both Transparent Activation and Native Queries will produce correct results out-of-the-box.
我们已经看到,透明的激活和本地查询都能得到正确的结果。
Native queries provide a powerful way to execute complex queries without having to learn a new query language or resort to complicated object structures to model a predicate.
原生查询为执行复杂查询提供了一种功能强大的方法,而且不需要学习新的查询语言或使用复杂对象结构对谓词建模。
The simplest enhancer task does both: it optimizes Native Queries and it adds the Activatable interface to your classes, making sure a persistent object is activated whenever any field is read.
最简单的增强器任务:优化原生查询而且为类增加可激活接口,以确保无论何时读取任何字段,相应的持久化对象都会被激活。
The simplest enhancer task does both: it optimizes Native Queries and it adds the Activatable interface to your classes, making sure a persistent object is activated whenever any field is read.
最简单的增强器任务:优化原生查询而且为类增加可激活接口,以确保无论何时读取任何字段,相应的持久化对象都会被激活。
应用推荐