-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Querying embedded Fields giving ValidationException on disableValidation #961
Comments
Probably related #941 |
Yes, it seems so. Is there a reason why the QueryValidator only breaks at Interface?
|
That logic predates me so I can't say one way or the other why it breaks there though I have some guesses. Can you share an example line or two of your json just so I can recreate this test locally. I have an idea of what it looks like but would like to minimize the assumptions I'm making. |
nevermind. just found that constant. |
still broken in current 1.3.0-SNAPSHOT |
That jenkins build is still running. On Mon, Jul 11, 2016 at 10:38 AM, mdoh [email protected] wrote:
|
ok. |
It should be online now. At least, jenkins has pushed the bits. -------------------------------- { *name : *"Justin Lee", * On Mon, Jul 11, 2016 at 10:46 AM, mdoh [email protected] wrote:
|
i tried morphia-1.3.0-20160711.144219-30 and it is still broken on my site: The field 'data.data.id' could not be found in 'java.lang.Object' |
can you look at the test here and see how it differs from your situation? |
I' ve seen your tests and I' m already trying running these on my machine |
Your TestEntity has a different data object. As you can see on the sample above I am using a BasicDBList:
Because of that it can not map it in MappedClass
If you change it in TestEmbeddedValidation it will fail aswell. |
I was guessing that'd be the difference. You really shouldn't be using |
If I do so I get warnings: |
Hi,
I get a ValidationException after updating to Morphia 1.2.0
The field 'data.data.id' could not be found in 'java.lang.Object' in Embedded Objects. at org.mongodb.morphia.query.QueryValidator.validateQuery(QueryValidator.java:99
Morphia Version 1.2.0
JDK 1.8
MongoDB 3.0.7
In MongoDB the corresponding Query
db.collection.find({"data.data.id" : "123"})
is working
Here is a Test:
The text was updated successfully, but these errors were encountered: