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.
是否有一个java框架给定一个具有数据成员的类(包括像arraylists这样的对象)将在给定的数据库中创建一个表并能够从所述数据库中插入和选择这些实体?我知道给定表的 ORM,DTO 可以将行映射到实体,但是是否有一个框架也可以为您创建表?
比较两个最流行的开源持久性框架 iBATIS 和 RedHat 的 Hibernate。我们有 Sun-Oracle 称为 Java Persistence API (JPA) 和 JPA2 的东西。
JPA 本身具有弥补标准 ORM 框架的功能。也就是说,您可以在项目中单独使用 JPA。
Hibernate 是最流行的 ORM 框架,一旦引入 JPA,hibernate 就符合 JPA 规范。除了应该遵循hibernate的基本规范集之外,它还提供了很多额外的东西。