We solved a similar problem by creating a view that calculated the field
instead of using a transient field.
Then we just mapped the view as a read only object and all the sorting worked.
-Tony
On Jul 11, 2011, at 7:28 PM, Richard Yunhua Sang wrote:
> Thanks for your reply, but I do want to so
Imagine the implementation
if(there_is_a_transient_field)
{
populate_all_data();
sort_yourself_based_on_sort_constraint();
paginate();
}
else
{
pass_the_paging_and_sort_constraints_to_jpa();
}
Instead you already have a JPAGridDataSource and you can have your own
JPAInMemoryGridDataSo
Hi Taha,
I have no problem to write a new GridDataSource to do such thing; but as I
said, it would be good to have this function in JPAGridDataSource.
e.g.
@Entity
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String fir
Hi Richard,
Internally JPAGridDataSource does not handle sorting itself, instead it
delegates it to JPA and transient values are unknown to JPA. If you want to
handle transient values, you will have to write you own implementation of
GridDataSource where in you can retrieve all the rows from the d
HI Igor,
I have a small Maven project to demonstrate this problem, can I send it as a
zip file to your personal gmail address?
Thanks,
Yunhua
On Mon, Jul 11, 2011 at 5:19 PM, Igor Drobiazko wrote:
> Can you please provide more details? Perfectly some source code to
> reproduce
> the issue.
>
>
Thanks for your reply, but I do want to sort the result by transient field
in Grid. It would be appreciated that the JPAGridDataSource is able to sort
the result within JVM.
On Mon, Jul 11, 2011 at 5:29 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Mon, 11 Jul 2011 18:06:17
On Mon, 11 Jul 2011 18:06:17 -0300, Richard Yunhua Sang
wrote:
Hi there,
Hi!
I am using a Grid with JpaGridDataSource; when I click sort icon on a
transient field of an entity, I get following exception:
I don't think any GridDataSource implementation backed by a database would
be abl
Can you please provide more details? Perfectly some source code to reproduce
the issue.
On Mon, Jul 11, 2011 at 11:06 PM, Richard Yunhua Sang wrote:
> Hi there,
>
> I am using a Grid with JpaGridDataSource; when I click sort icon on a
> transient field of an entity, I get following exception:
>