Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设一个域有一个继承链。例如,它可能有一个Fruit超类,可能的子类是Appleand Banana。如何形成相应的 DAO?
Fruit
Apple
Banana
根据模式- 每个具体类一个。然而,在实践中,您应该创建一个通用 DAO,然后在您有特定查询时将该 DAO 子类化。