| It is possibile to execute an hql query to retrieve the name of "enumerated" entity column, stored in the db as "ordinal"..Example:
 @Entity
 @Table(name = "someentity", schema = "someschema")
 public class Someentity{
 [...]
 
 @Column(name = "enumcol")
 @Enumerated(EnumType.ORDINAL)
 public enumTypeXX getEnumcol() {
 return this.enumcol;
 }
 
 public void setEnumcol(enumTypeXX enumcol) {
 this.enumcol = enumcol;
 }
 [...]
 
 }
 
 
 in the query I need to get the name of the ordinal value stored in the db, something like:
 
 select someentity.enumcol.name from Someentity someentity
 
 but name property seems to be not available in hql queries...
 
 
 |