-
Notifications
You must be signed in to change notification settings - Fork 11
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
not have a CQLMappedEntityValueConverter on List valueConverters. #25
Comments
Can you provide code and how you are initializing the factory? On Wed, Jun 19, 2013 at 10:00 PM, Raneves notifications@github.com wrote:
Raúl Raja Martínez |
the follow code initializing the factory:
|
Query query = Query.get(QueryBuilder.select(QueryBuilder.allColumns(), QueryBuilder.from(entity.getClass()), QueryBuilder.where( QueryBuilder.eq("project", project) ))); project is a column family mapped in my class. |
the atribute "entities" is a list of class |
any atualization? |
Can you also send the Entity including all mappings? On Thu, Jun 27, 2013 at 10:09 PM, Raneves notifications@github.com wrote:
Raúl Raja Martínez |
public class Empresa extends EntityBase
} in my query i use segmento in clausule where. Query query = Query.get(QueryBuilder.select(QueryBuilder.allColumns(), QueryBuilder.from(Empresa.class), QueryBuilder.where( QueryBuilder.eq("segmento", segmento) ))); entity segmento is: public class SegmentoProjeto extends EntityBase
} |
What is the code that you are using to pass the query to the factory and retrieve the List of objects? |
Query query = Query.get(QueryBuilder.select(QueryBuilder.allColumns(), QueryBuilder.from(Empresa.class), QueryBuilder.where( QueryBuilder.eq("segmento", segmento) ))); response = getPersistenceFactory().getSingleResult(Empresa.class, query); |
is important execute this query on first time after startup server application. |
not have a CQLMappedEntityValueConverter on list valueConverters of QueryBuilder.class after initialize application on first execution of query.
then my query return a NULL object, but I have expected a entity.
in second call of query, the class CQLMappedEntityValueConverter is present in list valueConverters, returning my object correctly.
The text was updated successfully, but these errors were encountered: