How to implement OJB query
This article is about how to implement OJB queries. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
OJB query
Link:
Joints declared in path expressions (relationship.attribute) are automatically declared by OJB in criteria.
Dynamic processing. Path expressions support 1:1, 1: n, m: n relationships.
The following example finds all articles belonging to the Liquors product group. The relationship between articles and product groups is in the Article class
The productGroup relationship is established by: