Bean Query first version (1.0.0) has been released, bean1.0.0
BeanQuery is a Java tool library that converts objects to Map. You can select attributes in the Bean to sort the results and query the results by conditions. It can not only act on top-level objects, but also on sub-objects. For more details, see my blog: http://blog.csdn.net/justfly/article/details/40486881
I have just released version 1.0.0. It is now in the Sonatype OSS database and will be synchronized to the Maven central database in 2 hours.
Sonatype OSS Library: https://oss.sonatype.org/content/groups/public/cn/jimmyshi/bean-query/1.0.0/
Github code: https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.0.0
Reference in Maven Project
<Dependency> <groupId> cn. jimmyshi </groupId> <artifactId> bean-query </artifactId> <version> 1.0.0 </version> </dependency>
Ask Quert query = createQuery (SQL) setResultTransformer (TransformersaliasToBean (Userclass );
Encapsulate the result set as a User object. This facilitates the use of service-layer code.
How to define the execueQuery method of DBBean type
It's not what you mean... Query the database ???