I\'ve got an simple Hibernate entity for which I use the @Formula annotion:
@Id private Long id; private String name; @Formula(\"(select count(f.*) fro
Simply way , don't use createNativeQuery , just use createQuery .. or make a transiant with getter convat