@Property annotation disrupts aggregation mapping
See original GitHub issueUsing 1.4.1
I’m getting this error when trying to aggregate, using a class to specify the aggregation results:
MappingException: Error setting value from converter (IdentityConverter) for...
In the handler:
final Dao<Client> clientDao = new Dao<>(Client.class);
final Iterator<ClientAggregate> iterator = clientDao.newAggregation()
.match(query)
.lookup(DbCollections.PHONE_NUMBERS, Client.PRIMARY_PHONE_ID, Phone.ID, Client.PRIMARY_PHONE)
.unwind(Client.PRIMARY_PHONE)
.aggregate(ClientAggregate.class);
ClientAggregate.java
public class ClientAggregate extends Client {
@Property(PRIMARY_PHONE) // <-- causes failure
private Phone primaryPhone;
}
I’m not sure if this is by design, but I always annotate my fields with PSFS values, so I can make any changes to the values globally instead of refactoring the actual property name.
If I remove the @Property
annotation and name the field the same as the as
option during the $lookup
stage, it works fine. Is there a reason this fails, because it would be nice to use the annotation rather than relying on the actual field name.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
SVAT: Secure outsourcing of variant annotation and genotype ...
We present SVAT, a method for secure outsourcing of variant annotation and aggregation, which are two basic steps in variant interpretation ...
Read more >Lanosterol Disrupts Aggregation of Human ... - ACS Publications
Inspired by these experimental observations, we investigate the preventive activity of lanosterol in the aggregate formation of human γD- ...
Read more >Loss of mRNA surveillance pathways results in ... - NCBI - NIH
We found that increased protein aggregation is a common property of mRNA surveillance mutants suggesting that a failure to degrade these mRNAs ...
Read more >Lanosterol Disrupts Aggregation of Human γD ... - Squarespace
For reference, next to each binding map, we show the structures highlighting the key protein domains: the N-terminal region. (tan) and the C- ......
Read more >Efficient and precise single-cell reference atlas mapping with ...
This enables interpretation of new datasets by transferring annotations and metadata of interest from nearby reference cells. Fast mapping ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Embedded
works as expected. Honestly never crossed my mind to use that. I’ll show myself out…what happens if you use
@Embedded
there? That’s the correct annotation there…