Get a list of bean type without being mapped in Hibernate

后端 未结 1 1624
春和景丽
春和景丽 2020-12-22 00:43

I don\'t know if this is even possible in hibernate.

Can I get a list of a bean type (which hasn\'t been mapped) with the getSession() of Hibernate?

What I\'

相关标签:
1条回答
  • 2020-12-22 01:25

    Use a setResultTransformer(AliasToBeanResultTransformer) instead of addEntity() and all should be fine

    0 讨论(0)
提交回复
热议问题