Shouldn't it be first lower case, i.e. the names of the references?
If it is a criteria for Library class I don't think it should include
Library.

crits.put("media.name", "myName");

/Patrik


Steffen Stundzig wrote:
> 
> Hi,
> 
> I try to use the findByCriteria to search over associations like
> 
> Map<String, Object> crits = ...
> crits.put("Library.Media.Name", "myName");
> 
> LibraryRepository.findByCriteria(crits);
> 
> Then I got a 
> org.fornax.cartridges.sculptor.framework.errorhandling.DatabaseAccessException:
>  
> 
> could not resolve property: Media.name of:  Library;
> 
> and so on. The problems in iterating over more then one entity.
> 
> I'm using it wrong?
> 
> Regards
>     Steffen...
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-sculptor--findByCriteria-Problem-tp21579544s17564p21581650.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to