cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy Soesilo (JIRA)" <>
Subject [jira] [Commented] (CXF-4949) FIQL - searchContext returns null SearchCondition
Date Thu, 16 Jan 2014 02:30:21 GMT


Sandy Soesilo commented on CXF-4949:

Hi Sergey,
in my entity I have a camelCase property 
@Column(name="PHONENO", length=30, nullable=false)
private String phoneNumber;
with following call in the browser /customers?_s=phoneNumber==12345

I'm using JPATypedQueryVisitor  and he was unable to match the getters/setters for this property
since it's been lowercased from the beginning.

{quote}Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute  with the
the given name [phonenumber] on this ManagedType [domain.AbstractEntity]
	at org.hibernate.jpa.internal.metamodel.AbstractManagedType.checkNotNull(
	at org.hibernate.jpa.internal.metamodel.AbstractManagedType.getAttribute(
	at org.hibernate.jpa.internal.metamodel.AbstractManagedType.getAttribute(
	at org.hibernate.jpa.criteria.path.AbstractFromImpl.locateAttributeInternal(
	at org.hibernate.jpa.criteria.path.AbstractPathImpl.locateAttribute(
	at org.hibernate.jpa.criteria.path.AbstractPathImpl.get(

	... 47 more{quote}

Tested with cxf 2.7.8


> FIQL - searchContext returns null SearchCondition
> -------------------------------------------------
>                 Key: CXF-4949
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.6.6
>            Reporter: Swarup
>            Assignee: Sergey Beryozkin
>             Fix For: 2.6.8, 2.7.5, 3.0.0-milestone1
> Hi,
> I'm trying the fiql expression for the first time, and I get null searchCondition. But
when i print the searchContext.getSearchExpression(), it seems to have parsed the query param
fine with: lowestPrice=gt=10
> SearchCondition<TourTicketStats> sc = searchContext.getCondition(filterContext.getSearchExpression(),
> I'm atleast expecting some kind of exception raised if it's not able to parse it. 
> Any help to debug it is appreciated.
> Using v2.6.6
> Thanks

This message was sent by Atlassian JIRA

View raw message