[
https://issues.apache.org/jira/browse/ABDERA-312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tan Nguyen Cong updated ABDERA-312:
-----------------------------------
Description:
Hi Guys, I can't filter in one to many relationship in this case.Could you
please give your comments??
@PersistenceCapable
Category {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long categoryid;
@Persistent(mappedBy = "category", defaultFetchGroup = "true")
@Element(dependent = "true")
private List<CategoryDescription> categoryDescription;
}
@PersistenceCapable
public class CategoryDescription {
@Persistent
private Category category;
@Persistent
private Long languageid;
}
I try to filter like "Select from Category.class Where
categoryDescription.cotains(i) && i.languageid == 1 VARIABLES
CategoryDescription.class i"
was:
Hi Guys, I can't filter in one to many relationship in this case.Could you
please give your comments??
@PersistenceCapable
Category {
@Persistent(mappedBy = "category", defaultFetchGroup = "true")
@Element(dependent = "true")
private List<CategoryDescription> categoryDescription;
}
> How to Filter in one to many relationship
> -----------------------------------------
>
> Key: ABDERA-312
> URL: https://issues.apache.org/jira/browse/ABDERA-312
> Project: Abdera
> Issue Type: Improvement
> Reporter: Tan Nguyen Cong
>
> Hi Guys, I can't filter in one to many relationship in this case.Could you
> please give your comments??
> @PersistenceCapable
> Category {
> @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> private Long categoryid;
>
> @Persistent(mappedBy = "category", defaultFetchGroup = "true")
> @Element(dependent = "true")
> private List<CategoryDescription> categoryDescription;
> }
> @PersistenceCapable
> public class CategoryDescription {
> @Persistent
> private Category category;
> @Persistent
> private Long languageid;
> }
> I try to filter like "Select from Category.class Where
> categoryDescription.cotains(i) && i.languageid == 1 VARIABLES
> CategoryDescription.class i"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira