Hi all,
I have two entity classes document and it's attribute values:
@Entity
public class Document extends Model{
...
@OneToMany
public List<AttributeValue> values;
...
}
@Entity
public class AttributeValue extends Model{
String name;
String value;
...
}
If I want to find all documents which has one attribute, e.g.:
type = passport
I do:
find.where()
.eq('values.value', 'passport')
.findList()
Everything is ok
But if I want to find all documents which has two attributes, e.g.:
type = passport
find.where()
.eq('values.value', 'passport')
.findList()
Of course it does not work, because it joins table attribute_value only 1 time (but I need double join).
Any suggestions? Comments?
Thnx
--
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.