findAllByPath now falls back to the older findAllByProperty for better backward compatibility.
Also the path is included in the query name used for MyBatis.
Original Pull Request: #157
pull/158/head
Jens Schauder7 years agocommitted byChristoph Strobl
@ -245,8 +250,19 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@@ -245,8 +250,19 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@ -255,6 +271,7 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@@ -255,6 +271,7 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@ -266,6 +283,7 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@@ -266,6 +283,7 @@ public class MyBatisDataAccessStrategy implements DataAccessStrategy {
@ -517,12 +517,19 @@ Note that the type used for prefixing the statement name is the name of the aggr
@@ -517,12 +517,19 @@ Note that the type used for prefixing the statement name is the name of the aggr
`getDomainType`: The type of the entity to load.
| `findAllByProperty-<propertyName>` | Select a set of entities that is referenced by another entity. The type of the referencing entity is used for the prefix. The referenced entities type is used as the suffix. | All `find*` methods.|
| `findAllByProperty-<propertyName>` | Select a set of entities that is referenced by another entity. The type of the referencing entity is used for the prefix. The referenced entities type is used as the suffix. _This method is deprecated. Use `findAllByPath` instead_ | All `find*` methods. If no query is defined for `findAllByPath`|
`getId`: The ID of the entity referencing the entities to be loaded.
`getDomainType`: The type of the entity to load.
| `findAllByPath-<propertyPath>` | Select a set of entities that is referenced by another entity via a property path. | All `find*` methods.|
`getIdentifier`: The `Identifier` holding the id of the aggregate root plus the keys and list indexes of all path elements.
`getDomainType`: The type of the entity to load.
| `count` | Count the number of aggregate root of the type used as prefix | `count` |
`getDomainType`: The type of aggregate roots to count.