Hello
I'm having trouble implementing advanced filtering with hibernate datasource. My observation is that if you have many to one relation then advanced criteria works only in specific situations.
For example. You feature Advanced filtering demo in your showcase "Server examples->Hibernate / Beans-> Advanced filtering".
I think SC can only filter by fields which are actually foreign keys held in Bean/DataSource being displayed.
In your example you filter grid by categoryName which happens to be foreign key held in SupplyItem. What if I wanted to filter by some other field which is not part of SupplyItem bean/table lets say categoryDescription (which would be held in SupplyCategory). This does not work for me because SC seems to always filter by foreign key.
Do you guys have any comments? It's important issue for us. We do not know if we are actually observing buggy behaviour or it's the way it's suppose to work.
Thanks
lkc
I'm having trouble implementing advanced filtering with hibernate datasource. My observation is that if you have many to one relation then advanced criteria works only in specific situations.
For example. You feature Advanced filtering demo in your showcase "Server examples->Hibernate / Beans-> Advanced filtering".
I think SC can only filter by fields which are actually foreign keys held in Bean/DataSource being displayed.
In your example you filter grid by categoryName which happens to be foreign key held in SupplyItem. What if I wanted to filter by some other field which is not part of SupplyItem bean/table lets say categoryDescription (which would be held in SupplyCategory). This does not work for me because SC seems to always filter by foreign key.
Do you guys have any comments? It's important issue for us. We do not know if we are actually observing buggy behaviour or it's the way it's suppose to work.
Thanks
lkc
Comment