Hibernate: Mapping custom column names in stored procedure named query

后端 未结 4 2113
鱼传尺愫
鱼传尺愫 2020-12-21 07:33

I currently have the following named query that wraps around a stored procedure:-


    
        

        
4条回答
  •  无人及你
    2020-12-21 07:50

    You'll need to implement your own ResultTransformer. It's really simple, and you can look at the source of the bundled implementations for inspiration.

    http://docs.jboss.org/hibernate/core/3.6/javadocs/org/hibernate/transform/ResultTransformer.html

    https://github.com/hibernate/hibernate-core/tree/master/hibernate-core/src/main/java/org/hibernate/transform

提交回复
热议问题