Hi All,
I have two entity beans Demand1...*Offer.
Code:
class Demand {
private Double cost;
.
.
.
.
}
class Offer{
private Demand demand;
private Double price;
.
.
.
.
}
I am displaying demand and offer in datatable in my page. I also display cost-price as columns in datatable. I want to know how can sort based on cost-price. I am using Jboss Seam, so uses EntityQuery(OfferList) object to supply resultSet to datatable in my page. I tried demand.cost-offer.demand.price but it is not working. Can I use a Transient property in demand to store cost-price and sort based on the Transient property? I don’t know why demand.cost-offer.demand.price is not working in hibernate it works in normal sql.
Please advice....
Thanks