How can I pass a Class as parameter and return a generic collection in Java?

后端 未结 7 1118
悲哀的现实
悲哀的现实 2020-12-24 05:18

I am designing a simple Data Access Object for my Java application. I have a few classes (records) that represents a single row in tables like User and Fr

7条回答
  •  鱼传尺愫
    2020-12-24 06:02

    I've actually done this in a generic data access library. See Norm. Full source code on Github.

提交回复
热议问题