OrderBy « Map « JPA Q&A





1. how to use spaced column names in hibernate orderby mapping xml    stackoverflow.com

I have a column name say USER IMAGE NAME. How to use this spaced column name in orderby attribute, to get sorted in descending order.

<map name="images" table="`USER IMAGE`" order-by="`USER IMAGE NAME` desc">
 ...

2. Is it possible to have Hibernate perform an OrderBy through a ManyToMany relationship?    stackoverflow.com

I have inherited a code base with some models and a request to implement sorting them. As I'm not a hibernate guru, I'm stumped. (Pardon the Pseudo Code)

class Event {
  ...

3. how to use spaced column names in hibernate orderby mapping xml    coderanch.com

Hi., I have a column name say USER IMAGE NAME. How to use this spaced column name in orderby attribute, to get sorted in descending order. The code -- order-by="USER IMAGE NAME desc" not works.

4. Using a propety from a one-to-one mapping within an orderBy    forum.hibernate.org

I have the following classes mapped and I would like to be able to use the sortOrder property of the CorpWebLink class (which is a one-to-one mapping of the within the CorpSalesRepWebLink class) as an order-by of the corpSalesRepWebLinks set. Is this possible? CorpSalesRepWeb