Code generators vs. ORMs vs. Stored Procedures

前端 未结 6 1973
猫巷女王i
猫巷女王i 2020-12-25 15:21

In what domains do each of these software architectures shine or fail?

Which key requirements would prompt you to choose one over the other?

Please assume th

6条回答
  •  萌比男神i
    2020-12-25 16:05

    You forgot a significant option that deserves a category of its own: a hybrid data mapping framework such as iBatis.

    I have been pleased with iBatis because it lets your OO code remain OO in nature, and your database remain relational in nature, and solves the impedance mismatch by adding a third abstraction (the mapping layer between the objects and the relations) that is responsible for mapping the two, rather than trying to force fit one paradigm into the other.

提交回复
热议问题