Giter VIP home page Giter VIP logo

Comments (10)

blinkfox avatar blinkfox commented on June 14, 2024

不太懂你的意思,你可以用 List 接收,也可以用 Set 接收,分页的话,就用 Page 去接收,查询出单个数据,就单个对象数据去接收就行。

from fenix.

chenmu5241 avatar chenmu5241 commented on June 14, 2024

from fenix.

blinkfox avatar blinkfox commented on June 14, 2024

@chenmu5241

  1. 如果你查出来的数据,就是单实体表的查询,可以直接返回实体类的集合;
  2. 如果你查出来的数据,是多个表连表查询的结果,且字段是多个表都有的字段,可以用 JPA 投影来返回实体。他的投影功能稍微麻烦点儿,如果不用 JPA 的投影,你可以用 Fenix 提供的返回实体 Bean 的功能,也可以用实体接收。

from fenix.

chenmu5241 avatar chenmu5241 commented on June 14, 2024

from fenix.

blinkfox avatar blinkfox commented on June 14, 2024

@chenmu5241 今天发现了一个诡异的隐藏 bug,在异步多线程中,去调返回自定义实体的查询方法,jpa 不会释放 JDBC 连接,今晚会再发一版,修复这个问题。你到时候可以再更新一下。

from fenix.

chenmu5241 avatar chenmu5241 commented on June 14, 2024

from fenix.

blinkfox avatar blinkfox commented on June 14, 2024

@chenmu5241 使用最新的 v2.3.2 版本。

from fenix.

niejianjun avatar niejianjun commented on June 14, 2024

支持springboot2.3.1吗?

from fenix.

blinkfox avatar blinkfox commented on June 14, 2024

@niejianjun 支持的。

from fenix.

chenmu5241 avatar chenmu5241 commented on June 14, 2024

from fenix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.