Using beans in pureQuery

Although pureQuery methods can deal with input parameters and return values defined as unstructured types (primitive wrapper objects such as Integer and Float objects, Map objects), you can map relational data to Java™ objects best by using beans.

These beans can represent several different types of data:

pureQuery analyzes the public fields and methods in a bean to determine its properties. Then, pureQuery uses the names of those properties, along with the values supplied in the annotations on those properties, to determine how to map the properties of the bean to the columns in the database.


Feedback