Spring的作者说过软件开发过程中“开发速度”是王道,如今我们的软件开发都是分层,今天我来说说我对 持久层快速开发的一些想法:
用 hibernate 和 xdoclet 开发的流程如下:
1.写 Persistent class,并在 源程序里写上一些 hibernate 的 tag
2.用 xdoclet 根据 Persistent class 里的 tag 自动生成 mapping file
3.用 Hibernate 提供的 SchemaExport 类生成 数据库建表的 ddl
然后就不用考虑数据库的细节啦,哈哈。
用 hibernate 和 xdoclet 开发的流程如下:
1.写 Persistent class,并在 源程序里写上一些 hibernate 的 tag
2.用 xdoclet 根据 Persistent class 里的 tag 自动生成 mapping file
3.用 Hibernate 提供的 SchemaExport 类生成 数据库建表的 ddl
然后就不用考虑数据库的细节啦,哈哈。
本文介绍了一种利用Hibernate和xdoclet实现的持久层快速开发流程。该流程包括编写Persistentclass并在源代码中添加Hibernate标签,使用xdoclet自动生成映射文件,以及通过Hibernate的SchemaExport类生成数据库建表的DDL。
77

被折叠的 条评论
为什么被折叠?



