Querying on subtyped Properties do not work
-------------------------------------------
Key: QI-236
URL: http://issues.ops4j.org/browse/QI-236
Project: Qi4j
Issue Type: Bug
Components: Query
Affects Versions: 1.0
Reporter: Paul Merlin
Assignee: Rickard Öberg
Attachments: SubtypedPropertyQueryTest.java
I came accross something that looks like a bug : I cannot use the Query API to
build a Query using a Where clause on an subtyped Property.
I get the following exception:
org.qi4j.runtime.query.QueryException: Unsupported property type:interface
test.SubtypedPropertyQueryTest$Name
at
org.qi4j.runtime.query.grammar.impl.PropertyReferenceImpl.<init>(PropertyReferenceImpl.java:88)
at
org.qi4j.runtime.query.proxy.PropertyReferenceProxy.<init>(PropertyReferenceProxy.java:49)
at org.qi4j.runtime.query.proxy.MixinTypeProxy.invoke(MixinTypeProxy.java:122)
at test.$Proxy13.name(Unknown Source)
at
test.SubtypedPropertyQueryTest.givenAnEntityWithSubtypedPropertyWhenQueriedOnPropertyThenJustWork(SubtypedPropertyQueryTest.java:94)
Attached here is the complete unit test with one first test that query on a
legacy property and pass, the second one that query on a subtyped property and
fail.
As subtyping Property is encouraged, I expected queries to work on them.
Hope this code can help you fix the issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev